Skip to content
Permalink
Browse files
Fix to let point symbol previews render
git-svn-id: http://svn.osgeo.org/qgis/trunk@9484 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 17, 2008
1 parent 0614440 commit 014fe9a956500a50b1db0b0952fef4d7c2be116c
Showing with 8 additions and 2 deletions.
  1. +4 −1 src/app/qgsgraduatedsymboldialog.cpp
  2. +4 −1 src/app/qgsuniquevaluedialog.cpp
@@ -590,7 +590,10 @@ void QgsGraduatedSymbolDialog::updateEntryIcon( QgsSymbol * thepSymbol,
switch ( myType )
{
case QGis::Point:
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getPointSymbolAsImage() ) ) );
{
int myWidthScale = 4; //magick no to try to make vector props dialog preview look same as legend
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getPointSymbolAsImage( myWidthScale ) ) ) );
}
break;
case QGis::Line:
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getLineSymbolAsImage() ) ) );
@@ -438,7 +438,10 @@ void QgsUniqueValueDialog::updateEntryIcon( QgsSymbol * thepSymbol,
switch ( myType )
{
case QGis::Point:
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getPointSymbolAsImage() ) ) );
{
int myWidthScale = 4; //magick no to try to make vector props dialog preview look same as legend
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getPointSymbolAsImage( myWidthScale ) ) ) );
}
break;
case QGis::Line:
thepItem->setIcon( QIcon( QPixmap::fromImage( thepSymbol->getLineSymbolAsImage() ) ) );

0 comments on commit 014fe9a

Please sign in to comment.