Skip to content

Commit 014fe9a

Browse files
author
timlinux
committedOct 17, 2008
Fix to let point symbol previews render
git-svn-id: http://svn.osgeo.org/qgis/trunk@9484 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0614440 commit 014fe9a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
 

‎src/app/qgsgraduatedsymboldialog.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,10 @@ void QgsGraduatedSymbolDialog::updateEntryIcon( QgsSymbol * thepSymbol,
590590
switch ( myType )
591591
{
592592
case QGis::Point:
593-
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getPointSymbolAsImage() ) ) );
593+
{
594+
int myWidthScale = 4; //magick no to try to make vector props dialog preview look same as legend
595+
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getPointSymbolAsImage( myWidthScale ) ) ) );
596+
}
594597
break;
595598
case QGis::Line:
596599
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getLineSymbolAsImage() ) ) );

‎src/app/qgsuniquevaluedialog.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,10 @@ void QgsUniqueValueDialog::updateEntryIcon( QgsSymbol * thepSymbol,
438438
switch ( myType )
439439
{
440440
case QGis::Point:
441-
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getPointSymbolAsImage() ) ) );
441+
{
442+
int myWidthScale = 4; //magick no to try to make vector props dialog preview look same as legend
443+
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getPointSymbolAsImage( myWidthScale ) ) ) );
444+
}
442445
break;
443446
case QGis::Line:
444447
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getLineSymbolAsImage() ) ) );

0 commit comments

Comments
 (0)
Please sign in to comment.