We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc018dd commit 9ca4093Copy full SHA for 9ca4093
src/legend/qgslegend.cpp
@@ -1662,11 +1662,17 @@ void QgsLegend::showLegendLayerFileGroups()
1662
1663
do
1664
{
1665
+ // This call seems to fix a bug in Qt4.2 (qgis trac #405) whereby the
1666
+ // setHidden() call in the if statement below doesn't result in
1667
+ // correct drawing of the visible file group part of the tree,
1668
+ // but doing this setHidden() call does result in correct drawing.
1669
+ theItem->setHidden(false);
1670
+
1671
theFileGroup = dynamic_cast<QgsLegendLayerFileGroup*>(theItem);
1672
if(theFileGroup)
- {
- theFileGroup->setHidden(!mShowLegendLayerFiles);
- }
1673
+ {
1674
+ theFileGroup->setHidden(!mShowLegendLayerFiles);
1675
+ }
1676
}
1677
while(theItem = nextItem(theItem));
1678
0 commit comments