diff options
Diffstat (limited to 'gdk/win32/gdkselection-win32.c')
-rw-r--r-- | gdk/win32/gdkselection-win32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c index d5edb2d08b..1bcdaa5497 100644 --- a/gdk/win32/gdkselection-win32.c +++ b/gdk/win32/gdkselection-win32.c @@ -383,12 +383,14 @@ gdk_selection_convert (GdkWindow *requestor, if (GetClipboardFormatName (fmt, sFormat, 80) > 0 && strcmp (sFormat, "UTF8_STRING")) { + GdkAtom atom; + if (!has_bmp && (!strcmp (sFormat, "image/bmp") || !strcmp (sFormat, "image/x-bmp") || !strcmp (sFormat, "image/x-MS-bmp"))) has_bmp = TRUE; - GdkAtom atom = gdk_atom_intern (sFormat, FALSE); + atom = gdk_atom_intern (sFormat, FALSE); data[i++] = atom; } } |