r19446 by jghali - small refactoring

scribus-commit scribus-commit at lists.scribus.net
Sun Aug 24 13:54:52 UTC 2014


Author: jghali
Date: Sun Aug 24 13:54:52 2014
New Revision: 19446

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19446
Log:
small refactoring

Modified:
    trunk/Scribus/scribus/canvasmode_nodeedit.cpp

Modified: trunk/Scribus/scribus/canvasmode_nodeedit.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19446&path=/trunk/Scribus/scribus/canvasmode_nodeedit.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_nodeedit.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_nodeedit.cpp Sun Aug 24 13:54:52 2014
@@ -538,13 +538,9 @@
 			m_doc->nodeEdit.ClRe = a;
 			if ((m_doc->nodeEdit.EdPoints) && (m_doc->nodeEdit.SelNode.contains(a) == 0))
 			{
-				if (m->modifiers() == Qt::ShiftModifier)
-					m_doc->nodeEdit.SelNode.append(a);
-				else
-				{
+				if (m->modifiers() != Qt::ShiftModifier)
 					m_doc->nodeEdit.SelNode.clear();
-					m_doc->nodeEdit.SelNode.append(a);
-				}
+				m_doc->nodeEdit.SelNode.append(a);
 			}
 			m_doc->nodeEdit.update(Clip.pointQF(a));
 			pfound = true;




More information about the scribus-commit mailing list