File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 22//
33// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
44
5+ using CefSharp . Internals ;
6+ using System ;
57using System . IO ;
68using System . Text ;
79using System . Windows ;
810using System . Windows . Input ;
9- using CefSharp . Internals ;
1011
1112namespace CefSharp . Wpf . Internals
1213{
@@ -115,7 +116,12 @@ public static CefDragDataWrapper GetDragDataWrapper(this DragEventArgs e)
115116 if ( dragData . IsFragment )
116117 {
117118 dragData . FragmentText = ( string ) e . Data . GetData ( DataFormats . Text ) ;
118- dragData . FragmentHtml = ( string ) e . Data . GetData ( DataFormats . Html ) ;
119+
120+ var htmlData = ( string ) e . Data . GetData ( DataFormats . Html ) ;
121+ if ( htmlData != String . Empty )
122+ {
123+ dragData . FragmentHtml = htmlData ;
124+ }
119125 }
120126
121127 return dragData ;
You can’t perform that action at this time.
0 commit comments