r24602 by jghali - Backport #16491: Unable to select lines at low zoom level

scribus-commit scribus-commit at lists.scribus.net
Mon Apr 5 13:58:40 UTC 2021


Author: jghali
Date: Mon Apr  5 13:58:39 2021
New Revision: 24602

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24602
Log:
Backport #16491: Unable to select lines at low zoom level

Modified:
    branches/Version156/Scribus/scribus/canvasmode_normal.cpp

Modified: branches/Version156/Scribus/scribus/canvasmode_normal.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24602&path=/branches/Version156/Scribus/scribus/canvasmode_normal.cpp
==============================================================================
--- branches/Version156/Scribus/scribus/canvasmode_normal.cpp	(original)
+++ branches/Version156/Scribus/scribus/canvasmode_normal.cpp	Mon Apr  5 13:58:39 2021
@@ -1121,7 +1121,7 @@
 		double dx = m_mouseSavedPoint.x() - m_mousePressPoint.x();
 		double dy = m_mouseSavedPoint.y() - m_mousePressPoint.y();
 		QRectF canvasSele = QRectF(m_mousePressPoint.x(), m_mousePressPoint.y(), dx, dy).normalized();
-		QRectF localSele  = m_canvas->canvasToLocal(canvasSele).normalized();
+		QRectF localSele  = m_canvas->canvasToLocalF(canvasSele).normalized();
 		if (!m_doc->masterPageMode())
 		{
 			uint docPagesCount = m_doc->Pages->count();
@@ -1159,7 +1159,7 @@
 				if (m_doc->canSelectItemOnLayer(docItem->m_layerID))
 				{
 					// get current item rect/bounding box
-					QRect apr2 = m_canvas->canvasToLocal( docItem->getCurrentBoundingRect(docItem->lineWidth()) );
+					QRectF apr2 = m_canvas->canvasToLocalF( docItem->getCurrentBoundingRect(docItem->lineWidth()) );
 
 					bool is_selected = docItem->isSelected();
 




More information about the scribus-commit mailing list