r14287 by fschmid - Fixed compile error when using Qt based rendering.
scribus-commit
scribus-commit at lists.scribus.net
Thu Nov 12 20:00:18 CET 2009
Revision: 14287
Author: fschmid
Date: 2009-11-12T11:36:34.975032Z
Commit message: Fixed compile error when using Qt based rendering.
Changeset:
M /trunk/Scribus/scribus/scpainter.cpp
Diffs:
Index: scribus/scpainter.cpp
===================================================================
--- scribus/scpainter.cpp (revision 14286)
+++ scribus/scpainter.cpp (revision 14287)
@@ -1284,9 +1284,10 @@
qmatrix.shear(-gradientSkew, 0);
qmatrix.translate(-x1, -y1);
}
- pat.setTransform(qmatrix);
+ QBrush brush = QBrush(pat);
+ brush.setTransform(qmatrix);
painter.setOpacity(fill_trans);
- painter.fillPath(m_path, pat);
+ painter.fillPath(m_path, brush);
}
else if (fillMode == 3)
{
@@ -1410,9 +1411,10 @@
qmatrix.shear(-gradientSkew, 0);
qmatrix.translate(-x1, -y1);
}
- pat.setTransform(qmatrix);
+ QBrush brush = QBrush(pat);
+ brush.setTransform(qmatrix);
painter.setOpacity(stroke_trans);
- pen.setBrush(pat);
+ pen.setBrush(brush);
}
painter.strokePath(m_path, pen);
}
More information about the scribus-commit
mailing list