r13878 by jghali - fix broken drawing of gradient vector controls
scribus-commit
scribus-commit at lists.scribus.net
Wed Aug 26 05:46:33 CEST 2009
Revision: 13878
Author: jghali
Date: 2009-08-18T23:20:44.574734Z
Commit message: fix broken drawing of gradient vector controls
Changeset:
M /trunk/Scribus/scribus/canvas.cpp
Diffs:
Index: scribus/canvas.cpp
===================================================================
--- scribus/canvas.cpp (revision 13877)
+++ scribus/canvas.cpp (revision 13878)
@@ -1152,7 +1152,9 @@
// QPoint out = contentsToViewport(QPoint(0, 0));
// psx->translate(out.x(), out.y());
// psx->translate(-qRound(m_doc->minCanvasCoordinate.x()*m_viewMode.scale), -qRound(m_doc->minCanvasCoordinate.y()*m_viewMode.scale));
- Transform(currItem, psx);
+ //Transform(currItem, psx);
+ psx->translate(static_cast<int>(currItem->xPos()), static_cast<int>(currItem->yPos()));
+ psx->rotate(currItem->rotation());
psx->setPen(QPen(Qt::blue, 1.0 / m_viewMode.scale, Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin));
psx->setBrush(Qt::NoBrush);
psx->drawLine(QPointF(currItem->GrStartX, currItem->GrStartY), QPointF(currItem->GrEndX, currItem->GrEndY));
More information about the scribus-commit
mailing list