r13877 by jghali - fix broken drawing of gradient vector controls
scribus-commit
scribus-commit at lists.scribus.net
Wed Aug 26 05:46:20 CEST 2009
Revision: 13877
Author: jghali
Date: 2009-08-18T23:20:21.735031Z
Commit message: fix broken drawing of gradient vector controls
Changeset:
M /branches/Version135/Scribus/scribus/canvas.cpp
Diffs:
Index: scribus/canvas.cpp
===================================================================
--- scribus/canvas.cpp (revision 13876)
+++ scribus/canvas.cpp (revision 13877)
@@ -1136,7 +1136,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