r23935 by jghali - Code cleanup

scribus-commit scribus-commit at lists.scribus.net
Mon Jul 20 05:25:15 UTC 2020


Author: jghali
Date: Mon Jul 20 05:25:15 2020
New Revision: 23935

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23935
Log:
Code cleanup

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23935&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Mon Jul 20 05:25:15 2020
@@ -10917,10 +10917,10 @@
 	if ((item->itemType() == PageItem::PolyLine) || (item->itemType() == PageItem::PathText))
 			return;
 	UndoTransaction activeTransaction;
-	if (m_undoManager->undoEnabled())
-		activeTransaction = m_undoManager->beginTransaction(Um::Selection,Um::IImageFrame,Um::ChangeShapeType,"",Um::IBorder);
-
-	if (frameType!=0)
+	if (UndoManager::undoEnabled())
+		activeTransaction = m_undoManager->beginTransaction(Um::Selection, Um::IImageFrame, Um::ChangeShapeType, QString(), Um::IBorder);
+
+	if (frameType != 0)
 		item->setCornerRadius(0);
 	if (UndoManager::undoEnabled())
 	{




More information about the scribus-commit mailing list