r22894 by jghali - Refactor ScribusMainWindow::specialActionKeyEvent() (2)
scribus-commit
scribus-commit at lists.scribus.net
Thu Mar 14 00:30:57 UTC 2019
Author: jghali
Date: Thu Mar 14 00:30:57 2019
New Revision: 22894
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22894
Log:
Refactor ScribusMainWindow::specialActionKeyEvent() (2)
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22894&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Thu Mar 14 00:30:57 2019
@@ -1539,7 +1539,8 @@
SimpleState *ss = dynamic_cast<SimpleState*>(m_undoManager->getLastUndo());
if (ss && ss->get("ETEA") == "insert_frametext")
ss->set("TEXT_STR",ss->get("TEXT_STR") + QString(QChar(unicodevalue)));
- else {
+ else
+ {
ss = new SimpleState(Um::InsertText,"",Um::ICreate);
ss->set("INSERT_FRAMETEXT");
ss->set("ETEA", QString("insert_frametext"));
@@ -1558,7 +1559,7 @@
if (activeTransaction)
activeTransaction.commit();
}
- else if (unicodevalue==SpecialChars::SHYPHEN.unicode()) //ignore the char as we use an attribute if the text item, for now.
+ else if (unicodevalue == SpecialChars::SHYPHEN.unicode()) //ignore the char as we use an attribute if the text item, for now.
{
// this code is currently dead since unicodeSoftHyphen
// doesn't have unicodevalue == -1 any more
More information about the scribus-commit
mailing list