Skip to content

Commit f55fbbf

Browse files
author
wonder
committed
In symbol selector, omit decimals when displaying the transparency %
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13324 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2287937 commit f55fbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/symbology-ng/qgssymbolv2selectordialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,5 +260,5 @@ void QgsSymbolV2SelectorDialog::on_mTransparencySlider_valueChanged( int value )
260260
void QgsSymbolV2SelectorDialog::displayTransparency( double alpha )
261261
{
262262
double transparencyPercent = ( 1 - alpha ) * 100;
263-
mTransparencyLabel->setText( tr( "Transparency: %1%" ).arg( transparencyPercent ) );
263+
mTransparencyLabel->setText( tr( "Transparency: %1%" ).arg(( int ) transparencyPercent ) );
264264
}

0 commit comments

Comments
 (0)