r23938 by jghali - #16177: Avoid a double check for HasSel
scribus-commit
scribus-commit at lists.scribus.net
Mon Jul 20 08:54:22 UTC 2020
Author: jghali
Date: Mon Jul 20 08:54:21 2020
New Revision: 23938
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23938
Log:
#16177: Avoid a double check for HasSel
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23938&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Mon Jul 20 08:54:21 2020
@@ -4644,7 +4644,7 @@
cItem = currItem->asTextFrame();
if (cItem->HasSel)
{
- if ((cItem->itemText.length() == 0) || (!cItem->HasSel))
+ if (cItem->itemText.length() == 0)
return;
StoryText itemText(doc);
itemText.setDefaultStyle(cItem->itemText.defaultStyle());
More information about the scribus-commit
mailing list