Skip to content

Commit

Permalink
-Show current color when opening color dialog from color map editor
Browse files Browse the repository at this point in the history
-Closes ticket #1321

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9350 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ersts committed Sep 18, 2008
1 parent f26b24d commit 4a9d90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -2649,7 +2649,7 @@ void QgsRasterLayerProperties::handleColormapTreeWidgetDoubleClick( QTreeWidgetI
{
item->setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable );
//show color dialog
QColor newColor = QColorDialog::getColor();
QColor newColor = QColorDialog::getColor(item->background(column).color());
if ( newColor.isValid() )
{
item->setBackground( 1, QBrush( newColor ) );
Expand Down

0 comments on commit 4a9d90f

Please sign in to comment.