Bug report #4035
Print Composer shape combo box not refecting current shape
|Affected QGIS version:||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||Yes||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||14021|
Draw a new shape. The new shape is an ellipse and shows on the Item tab Shape combo box as Ellipse... as expected.
Click on the combo and select Rectangle - the shape changes to a rectangle but the combo still says Ellipse.
Select rectangle from the combo again and the combo then shows Rectangle.
It seems that the combo saves the current shape name rather than the new picked name.
#2 Updated by Anna Kratochvilova over 8 years ago
- File shapeSelection.diff added
I can reproduce it in 1.7.1 on Ubuntu. The signal
currentIndexChanged is connected to 2 slots. I tried to remove connection to
setGuiElementValues. Instead, I added another connection between item and widget (similar to other composer items), although I'm not sure if it is necessary. See the patch.
#4 Updated by Marco Hugentobler over 8 years ago
- Status changed from Open to Resolved
Agreed, it's good to connect itemChanged() signal, because the widget stays in sync when using undo/redo functions. In future it will be good to emit more itemChanged() signals in the composer items. Like that, the widget stays in sync also if an item change comes from a python plugin.