Skip to content

Commit 6cc1f3d

Browse files
author
ersts
committed
-Show current color when opening color dialog from color map editor
-Closes ticket #1321 git-svn-id: http://svn.osgeo.org/qgis/trunk@9350 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e7a68ba commit 6cc1f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsrasterlayerproperties.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2649,7 +2649,7 @@ void QgsRasterLayerProperties::handleColormapTreeWidgetDoubleClick( QTreeWidgetI
26492649
{
26502650
item->setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable );
26512651
//show color dialog
2652-
QColor newColor = QColorDialog::getColor();
2652+
QColor newColor = QColorDialog::getColor(item->background(column).color());
26532653
if ( newColor.isValid() )
26542654
{
26552655
item->setBackground( 1, QBrush( newColor ) );

0 commit comments

Comments
 (0)