Bug report #7549
in latest qgis master the selection color is black, even if in the properties is the standard yellow
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||16492|
see attached screenshot
#2 Updated by Larry Shaffer over 9 years ago
Sounds like a QgsColorButton issue. Can't reproduce it here, but I copied over my previous pre-2.0 app settings (on Mac).
Is the Project Option's selection color button black? (That's the default color for the button, if one is not set.)
There is no indication in main Options that the current project overrides the app's selection color. Likewise, there seems to be no way to 'undo' a set project selection color, i.e. revert to app's.
#3 Updated by Larry Shaffer over 9 years ago
Ok, after temporarily removing my app prefs file, I could repeat the issue. It occurs because the undefined project's selection color is defaulting to black (even though it doesn't show that in the color button, which defaults to copying the app's, if it is not set).
To fix, open Project Options and click save. So, have to find why that is defaulting to black for the project.
#4 Updated by Larry Shaffer over 9 years ago
Could be related to "this recent commit to master":commit:7cc3031f8884d768fe8405b7249cdc18e3c2571b"
Maybe Martin can shed light on the issue. Seems like maybe the new
static QColor mSelectionColor of
QgsSymbolV2RenderContext  isn't being updated or maybe it is being overridden later by a new context that doesn't read the settings(?).