Index: src/app/qgssinglesymboldialog.cpp =================================================================== --- src/app/qgssinglesymboldialog.cpp (revision: 11107) +++ src/app/qgssinglesymboldialog.cpp (copia de trabajo) @@ -331,6 +331,7 @@ cboFillStyle->setEnabled( false ); btnFillColor->setEnabled( false ); + toolSelectTexture->setEnabled( false ); } void QgsSingleSymbolDialog::set( const QgsSymbol *sy ) @@ -401,6 +402,15 @@ } } + if ( myFillStyle == "TexturePattern" ) + { + toolSelectTexture->setEnabled( true ); + } + else + { + toolSelectTexture->setEnabled( false ); + } + //get and show the file path, even if we aren't using it. mTexturePath = sy->customTexture(); //if the file path isn't empty, show the image on the button