patch_for_bug_1792.txt
1 |
Index: src/app/qgssinglesymboldialog.cpp |
---|---|
2 |
=================================================================== |
3 |
--- src/app/qgssinglesymboldialog.cpp (revision: 11107) |
4 |
+++ src/app/qgssinglesymboldialog.cpp (copia de trabajo) |
5 |
@@ -331,6 +331,7 @@ |
6 |
|
7 |
cboFillStyle->setEnabled( false ); |
8 |
btnFillColor->setEnabled( false ); |
9 |
+ toolSelectTexture->setEnabled( false ); |
10 |
} |
11 |
|
12 |
void QgsSingleSymbolDialog::set( const QgsSymbol *sy ) |
13 |
@@ -401,6 +402,15 @@ |
14 |
} |
15 |
} |
16 |
|
17 |
+ if ( myFillStyle == "TexturePattern" ) |
18 |
+ { |
19 |
+ toolSelectTexture->setEnabled( true ); |
20 |
+ } |
21 |
+ else |
22 |
+ { |
23 |
+ toolSelectTexture->setEnabled( false ); |
24 |
+ } |
25 |
+ |
26 |
//get and show the file path, even if we aren't using it. |
27 |
mTexturePath = sy->customTexture(); |
28 |
//if the file path isn't empty, show the image on the button |