r18765 by fschmid - Fixed Bug #12000: Snapping to grid is not consistent

scribus-commit scribus-commit at lists.scribus.net
Tue Jan 21 19:33:59 UTC 2014


Author: fschmid
Date: Tue Jan 21 19:33:58 2014
New Revision: 18765

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18765
Log:
Fixed Bug #12000: Snapping to grid is not consistent

Modified:
    trunk/Scribus/scribus/canvasmode_normal.cpp

Modified: trunk/Scribus/scribus/canvasmode_normal.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18765&path=/trunk/Scribus/scribus/canvasmode_normal.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_normal.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_normal.cpp Tue Jan 21 19:33:58 2014
@@ -605,7 +605,7 @@
 						{
 							m_doc->m_Selection->setGroupRect();
 							double gx, gy, gh, gw, gxo, gyo;
-							m_doc->m_Selection->getGroupRect(&gx, &gy, &gw, &gh);
+							m_doc->m_Selection->getVisualGroupRect(&gx, &gy, &gw, &gh);
 							gx += m_objectDeltaPos.x();
 							gy += m_objectDeltaPos.y();
 							gxo = gx;
@@ -691,7 +691,7 @@
 					if (m_doc->SnapGrid)
 					{
 						double gx, gy, gh, gw, gxo, gyo;
-						m_doc->m_Selection->getGroupRect(&gx, &gy, &gw, &gh);
+						m_doc->m_Selection->getVisualGroupRect(&gx, &gy, &gw, &gh);
 						gx += m_objectDeltaPos.x();
 						gy += m_objectDeltaPos.y();
 						gxo = gx;
@@ -1122,7 +1122,7 @@
 					{
 						m_doc->m_Selection->setGroupRect();
 						double gx, gy, gh, gw, gxo, gyo;
-						m_doc->m_Selection->getGroupRect(&gx, &gy, &gw, &gh);
+						m_doc->m_Selection->getVisualGroupRect(&gx, &gy, &gw, &gh);
 						gxo = gx;
 						gyo = gy;
 						FPoint npx = m_doc->ApplyGridF(FPoint(gx, gy));




More information about the scribus-commit mailing list