Skip to content

Commit

Permalink
Show a preview message if composer map preview mode is rectangle (tic…
Browse files Browse the repository at this point in the history
…ket 1287)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9280 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 7, 2008
1 parent f035554 commit 309b741
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/core/composer/qgscomposermap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,14 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem* i

double currentScaleFactorX = horizontalViewScaleFactor();

if ( mComposition->plotStyle() == QgsComposition::Preview && mPreviewMode != Rectangle )
if ( mComposition->plotStyle() == QgsComposition::Preview && mPreviewMode == Rectangle )
{
QFont messageFont("", 12);
painter->setFont(messageFont);
painter->setPen(QColor(0, 0, 0));
painter->drawText(thisPaintRect, tr("Map will be printed here"));
}
else if ( mComposition->plotStyle() == QgsComposition::Preview)
{
//draw cached pixmap. This function does not call cache() any more because
//Qt 4.4.0 and 4.4.1 have problems with recursive paintings
Expand Down

0 comments on commit 309b741

Please sign in to comment.