Skip to content
Permalink
Browse files
enable mScale again
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5473 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed May 18, 2006
1 parent afeab8a commit 4a4241644113b23865c73c02df3b026ca952f2d7
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/composer/qgscomposition.cpp
@@ -65,11 +65,14 @@ QgsComposition::QgsComposition( QgsComposer *c, int id )
mView = c->view();
mSelectedItem = 0;
mPlotStyle = Preview;

// Attention: Qt4.1 writes line width to PS/PDF still as integer
// (using QPen->width() to get the value) so we MUST use mScale > 1

// Note: scale 10 make it inacceptable slow: QgsComposerMap 900x900mm on paper 1500x1000
// cannot be smoothly moved even if mPreviewMode == Rectangle and no zoom in
// scale 2 results in minimum line width 0.5 mmm which is too much
// scale 3 is compromise
mScale = 1;
mScale = 5;

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

0 comments on commit 4a42416

Please sign in to comment.