r16885 by craig - Remove some unneeded old code

scribus-commit scribus-commit at lists.scribus.net
Wed Oct 5 21:28:31 UTC 2011


Author: craig
Date: Wed Oct  5 21:28:31 2011
New Revision: 16885

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16885
Log:
Remove some unneeded old code

Modified:
    branches/Version135/Scribus/scribus/canvasmode_create.cpp

Modified: branches/Version135/Scribus/scribus/canvasmode_create.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16885&path=/branches/Version135/Scribus/scribus/canvasmode_create.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/canvasmode_create.cpp (original)
+++ branches/Version135/Scribus/scribus/canvasmode_create.cpp Wed Oct  5 21:28:31 2011
@@ -226,8 +226,6 @@
 	QRect tx;
 	m->accept();
 //	qDebug() << "legacy mode move:" << m->x() << m->y() << m_canvas->globalToCanvas(m->globalPos()).x() << m_canvas->globalToCanvas(m->globalPos()).y();
-//	emit MousePos(m->x()/m_canvas->scale(),// + m_doc->minCanvasCoordinate.x(), 
-//				  m->y()/m_canvas->scale()); // + m_doc->minCanvasCoordinate.y());
 
 	if (commonMouseMove(m))
 		return;
@@ -314,11 +312,9 @@
 	m_doc->DragP = false;
 	m_doc->leaveDrag = false;
 	inItemCreation = false;
-//	oldClip = 0;
 	m->accept();
 	m_view->registerMousePress(m->globalPos());
 	QRect mpo(m->x()-m_doc->guidesSettings.grabRad, m->y()-m_doc->guidesSettings.grabRad, m_doc->guidesSettings.grabRad*2, m_doc->guidesSettings.grabRad*2);
-//	mpo.moveBy(qRound(m_doc->minCanvasCoordinate.x() * m_canvas->scale()), qRound(m_doc->minCanvasCoordinate.y() * m_canvas->scale()));
 	canvasPressCoord = mousePointDoc;
 	createObjectMode = m_doc->appMode;
 	createObjectSubMode = m_doc->SubMode;
@@ -425,7 +421,6 @@
 	FPoint mousePointDoc = m_canvas->globalToCanvas(m->globalPos());
 	canvasPressCoord     = mousePointDoc;
 	QRect mpo(m->x()-m_doc->guidesSettings.grabRad, m->y()-m_doc->guidesSettings.grabRad, m_doc->guidesSettings.grabRad*2, m_doc->guidesSettings.grabRad*2);
-//	mpo.moveBy(qRound(Doc->minCanvasCoordinate.x() * m_canvas->scale()), qRound(m_doc->minCanvasCoordinate.y() * m_canvas->scale()));
 	m_doc->nodeEdit.deselect();
 	m_view->Deselect(false);
 	if (!m_doc->masterPageMode())




More information about the scribus-commit mailing list