Skip to content

Commit d2c057a

Browse files
author
rblazek
committed
enable mScale again
git-svn-id: http://svn.osgeo.org/qgis/trunk@5473 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 18ca7aa commit d2c057a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/composer/qgscomposition.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,14 @@ QgsComposition::QgsComposition( QgsComposer *c, int id )
6565
mView = c->view();
6666
mSelectedItem = 0;
6767
mPlotStyle = Preview;
68+
69+
// Attention: Qt4.1 writes line width to PS/PDF still as integer
70+
// (using QPen->width() to get the value) so we MUST use mScale > 1
71+
6872
// Note: scale 10 make it inacceptable slow: QgsComposerMap 900x900mm on paper 1500x1000
6973
// cannot be smoothly moved even if mPreviewMode == Rectangle and no zoom in
7074
// scale 2 results in minimum line width 0.5 mmm which is too much
71-
// scale 3 is compromise
72-
mScale = 1;
75+
mScale = 5;
7376

7477
// Add paper sizes and set default.
7578
mPapers.push_back ( QgsCompositionPaper( tr("Custom"), 0, 0, 1 ) );

0 commit comments

Comments
 (0)