File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -391,9 +391,18 @@ def data_defined_color_updated(self):
391391 """
392392 refreshing function for color data defined button
393393
394+ sets the vector layer to the data defined buttons
395+
394396 checks is the datadefined button is active and check also the plot type
395397 in order to deactivate the color when not needed
396398 """
399+
400+ # set the vector layer for all the data defined buttons
401+ layer = self .layer_combo .currentLayer ()
402+ buttons = self .findChildren (QgsPropertyOverrideButton )
403+ for button in buttons :
404+ button .setVectorLayer (layer )
405+
397406 # if data defined button is active
398407 if self .in_color_defined_button .isActive ():
399408 # if plot is type for which using an expression for the color selection makes sense
You can’t perform that action at this time.
0 commit comments