r18444 by jghali - #11719: Incorrect display of guide lines depending on zoom level
scribus-commit
scribus-commit at lists.scribus.net
Tue Sep 3 19:54:25 UTC 2013
Author: jghali
Date: Tue Sep 3 19:54:25 2013
New Revision: 18444
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18444
Log:
#11719: Incorrect display of guide lines depending on zoom level
Modified:
branches/Version14x/Scribus/scribus/canvasgesture_rulermove.cpp
Modified: branches/Version14x/Scribus/scribus/canvasgesture_rulermove.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18444&path=/branches/Version14x/Scribus/scribus/canvasgesture_rulermove.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/canvasgesture_rulermove.cpp (original)
+++ branches/Version14x/Scribus/scribus/canvasgesture_rulermove.cpp Tue Sep 3 19:54:25 2013
@@ -37,15 +37,15 @@
switch (m_mode)
{
case HORIZONTAL:
- p->setPen(QPen(color, 1.0 / m_canvas->scale(), Qt::DashDotLine, Qt::FlatCap, Qt::MiterJoin));
+ p->setPen(QPen(color, 1.0, Qt::DashDotLine, Qt::FlatCap, Qt::MiterJoin));
p->drawLine(QPoint(pageOrigin.x(), m_xy.y()), QPoint(pageOrigin.x() + pageSize.width(), m_xy.y()));
break;
case VERTICAL:
- p->setPen(QPen(color, 1.0 / m_canvas->scale(), Qt::DashDotLine, Qt::FlatCap, Qt::MiterJoin));
+ p->setPen(QPen(color, 1.0, Qt::DashDotLine, Qt::FlatCap, Qt::MiterJoin));
p->drawLine(QPoint(m_xy.x(), pageOrigin.y()), QPoint(m_xy.x(), pageOrigin.y() + pageSize.height()));
break;
case ORIGIN:
- p->setPen(QPen(color, 1.0 / m_canvas->scale(), Qt::DotLine, Qt::FlatCap, Qt::MiterJoin));
+ p->setPen(QPen(color, 1.0, Qt::DotLine, Qt::FlatCap, Qt::MiterJoin));
p->drawLine(QPoint(m_xy.x(), 0), QPoint(m_xy.x(), m_canvas->height()));
p->drawLine(QPoint(0, m_xy.y()), QPoint(m_canvas->width(), m_xy.y()));
break;
More information about the scribus-commit
mailing list