Bug 523554 - Copy from GIMP to Word broken

2009-01-11  Tor Lillqvist  <tml@iki.fi>

	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
This commit is contained in:
Tor Lillqvist 2009-01-11 13:23:46 +00:00 committed by Tor Lillqvist
parent b87add630e
commit bb56a0a119
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2009-01-11 Tor Lillqvist <tml@iki.fi>
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 <mclasen@redhat.com>
Bug 567024 gtktoolbutton doesn't create right proxy menu item

View File

@ -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);