Skip to content

Commit

Permalink
Fix to let point symbol previews render
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9484 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 17, 2008
1 parent fe20dc8 commit 07d8538
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app/qgsgraduatedsymboldialog.cpp
Expand Up @@ -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() ) ) );
Expand Down
5 changes: 4 additions & 1 deletion src/app/qgsuniquevaluedialog.cpp
Expand Up @@ -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() ) ) );
Expand Down

0 comments on commit 07d8538

Please sign in to comment.