r17843 by jghali - small optimization related to #11070

scribus-commit scribus-commit at lists.scribus.net
Sun Oct 28 23:36:09 UTC 2012


Author: jghali
Date: Sun Oct 28 23:36:08 2012
New Revision: 17843

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17843
Log:
small optimization related to #11070

Modified:
    trunk/Scribus/scribus/canvasmode.cpp

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17843&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp (original)
+++ trunk/Scribus/scribus/canvasmode.cpp Sun Oct 28 23:36:08 2012
@@ -768,7 +768,7 @@
 
 void CanvasMode::drawSnapLine(QPainter* p)
 {
-	if (m_doc->SnapElement)
+	if (m_doc->SnapElement && (xSnap != 0.0 || ySnap != 0.0))
 	{
 		MarginStruct bleedValues;
 		m_doc->getBleeds(m_doc->currentPage(), bleedValues);




More information about the scribus-commit mailing list