r14725 by cbradney - Revert last commit

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 15 00:20:33 CET 2010


Revision: 14725
Author: cbradney
Date: 2010-02-14T23:12:53.057814Z
Commit message: Revert last commit

Changeset: 
M  /branches/Version135/Scribus/scribus/sampleitem.cpp

Diffs:
Index: scribus/sampleitem.cpp
===================================================================
--- scribus/sampleitem.cpp	(revision 14724)
+++ scribus/sampleitem.cpp	(revision 14725)
@@ -312,7 +312,7 @@
 
 	if (tmpStyle.charStyle().font().isNone())
 		return QPixmap();
-	bool oldUndoEnabled=UndoManager::instance()->undoEnabled();
+
 	UndoManager::instance()->setUndoEnabled(false); // disable undo
 
 	PageItem_TextFrame *previewItem = new PageItem_TextFrame(m_Doc, 0, 0, width, height, 0, "__whiteforpreviewbg__", "__whiteforpreview__");
@@ -363,7 +363,7 @@
 		m_Doc->view()->setScale(sca);
 	m_Doc->appMode = userAppMode;
 //	m_Doc->docParagraphStyles.remove(tmpIndex);
-	UndoManager::instance()->setUndoEnabled(oldUndoEnabled);
+	UndoManager::instance()->setUndoEnabled(true);
 	return QPixmap::fromImage(pm);
 }
 




More information about the scribus-commit mailing list