Skip to content

Commit

Permalink
enable mScale again
Browse files Browse the repository at this point in the history
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 4a42416
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/composer/qgscomposition.cpp
Expand Up @@ -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 ) );
Expand Down

0 comments on commit 4a42416

Please sign in to comment.