build sanity.obj app/text/makefile.msc : gimptextundo.obj

2004-04-11  Hans Breuer  <hans@breuer.org>

	* app/makefile.msc : build sanity.obj
	  app/text/makefile.msc : gimptextundo.obj
	  app/widgets/makefile.msc : gimppatternfactoryview.obj

	* plug-ins/common/winclipboard.c : don't call
	gimp_image_undo_enable() when it's not switched off.
	Otherwise the undo history would be destroyed with
	Gimp-Core-CRITICAL **: file gimpimage.c: line 1579: assertion
	`gimage->undo_freeze_count > 0' failed
This commit is contained in:
Hans Breuer 2004-04-11 15:21:09 +00:00 committed by Hans Breuer
parent ab01d0b9e6
commit 22e0f080c1
5 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,15 @@
2004-04-11 Hans Breuer <hans@breuer.org>
* app/makefile.msc : build sanity.obj
app/text/makefile.msc : gimptextundo.obj
app/widgets/makefile.msc : gimppatternfactoryview.obj
* plug-ins/common/winclipboard.c : don't call
gimp_image_undo_enable() when it's not switched off.
Otherwise the undo history would be destroyed with
Gimp-Core-CRITICAL **: file gimpimage.c: line 1579: assertion
`gimage->undo_freeze_count > 0' failed
2004-04-10 Sven Neumann <sven@gimp.org>
* app/tools/gimptexttool.c (gimp_text_tool_apply): push an undo

View File

@ -88,6 +88,7 @@ OBJECTS = \
main.obj \
batch.obj \
errors.obj \
sanity.obj \
units.obj \

View File

@ -36,6 +36,7 @@ OBJECTS = \
gimptextlayer-xcf.obj \
gimptextlayout.obj \
gimptextlayout-render.obj \
gimptextundo.obj \
text-enums.obj \
INCLUDES = \

View File

@ -84,6 +84,7 @@ OBJECTS = \
gimpmenuitem.obj \
gimpnavigationpreview.obj \
gimppaletteeditor.obj \
gimppatternfactoryview.obj \
gimppreview.obj \
gimppreview-popup.obj \
gimppreviewrenderer.obj \

View File

@ -687,7 +687,8 @@ CB_PasteImage (gboolean interactive,
CloseClipboard ();
/* shouldn't this be done by caller?? */
gimp_image_undo_enable (image_ID);
if (!gimp_image_undo_is_enabled (image_ID))
gimp_image_undo_enable (image_ID);
return bRet;
} /* CB_PasteImage */