From bb56a0a119016f2306d9e877ee899f464deefc84 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 11 Jan 2009 13:23:46 +0000 Subject: [PATCH] Bug 523554 - Copy from GIMP to Word broken 2009-01-11 Tor Lillqvist Bug 523554 - Copy from GIMP to Word broken * gdk/win32/gdkselection-win32.c (_gdk_win32_selection_convert_to_dib): The DIB stored in the Windows Clipboard was for some unknown reason truncated by one byte. Don't do that. svn path=/trunk/; revision=22086 --- ChangeLog | 9 +++++++++ gdk/win32/gdkselection-win32.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd3ebc05cf..94e85c926b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-01-11 Tor Lillqvist + + Bug 523554 - Copy from GIMP to Word broken + + * gdk/win32/gdkselection-win32.c + (_gdk_win32_selection_convert_to_dib): The DIB stored in the + Windows Clipboard was for some unknown reason truncated by one + byte. Don't do that. + 2009-01-11 Matthias Clasen Bug 567024 – gtktoolbutton doesn't create right proxy menu item diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c index fbbaebbf22..5ae4425893 100644 --- a/gdk/win32/gdkselection-win32.c +++ b/gdk/win32/gdkselection-win32.c @@ -1175,7 +1175,7 @@ _gdk_win32_selection_convert_to_dib (HGLOBAL hdata, HGLOBAL hdatanew; g_free (target_name); - size = GlobalSize (hdata) - 1 - sizeof (BITMAPFILEHEADER); + size = GlobalSize (hdata) - sizeof (BITMAPFILEHEADER); ptr = GlobalLock (hdata); memmove (ptr, ptr + sizeof (BITMAPFILEHEADER), size); GlobalUnlock (hdata);