Skip to content
Permalink
Browse files

apply #2277

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12441 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 13, 2009
1 parent 6aa4746 commit 297eb2ddfc5bb4b9ac51d29f2f689241362f959e
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/plugins/copyright_label/plugin.cpp
@@ -108,8 +108,9 @@ void QgsCopyrightLabelPlugin::projectRead()
now = QDate::currentDate();
defString = "© QGIS " + now.toString( "yyyy" );

mQFont.setFamily( QgsProject::instance()->readEntry( "CopyrightLabel", "/FontName", "Sans Serif" ) );
mQFont.setPointSize( QgsProject::instance()->readNumEntry( "CopyrightLabel", "/FontSize", 9 ) );
// there is no font setting in the UI, so just use the Qt/QGIS default font (what mQFont gets when created)
// mQFont.setFamily( QgsProject::instance()->readEntry( "CopyrightLabel", "/FontName", "Sans Serif" ) );
// mQFont.setPointSize( QgsProject::instance()->readNumEntry( "CopyrightLabel", "/FontSize", 9 ) );
mLabelQString = QgsProject::instance()->readEntry( "CopyrightLabel", "/Label", defString );
mPlacementIndex = QgsProject::instance()->readNumEntry( "CopyrightLabel", "/Placement", 3 );
mEnable = QgsProject::instance()->readBoolEntry( "CopyrightLabel", "/Enabled", true );
@@ -171,7 +172,7 @@ void QgsCopyrightLabelPlugin::renderLabel( QPainter * theQPainter )
{
case 0: // Bottom Left
//Define bottom left hand corner start point
myYOffset = myHeight - size.height() + 5;
myYOffset = myHeight - ( size.height() + 5 );
myXOffset = 5;
break;
case 1: // Top left
@@ -186,7 +187,7 @@ void QgsCopyrightLabelPlugin::renderLabel( QPainter * theQPainter )
break;
case 3: // Bottom Right
//Define bottom right hand corner start point
myYOffset = myHeight - size.height() + 5;
myYOffset = myHeight - ( size.height() + 5 );
myXOffset = myWidth - ( size.width() + 5 );
break;
default:

0 comments on commit 297eb2d

Please sign in to comment.
You can’t perform that action at this time.