Skip to content
Permalink
Browse files

Work around for ticket #405 (incorrect drawing of expanded file groups

in the legen). Not sure why it works...


git-svn-id: http://svn.osgeo.org/qgis/trunk@6163 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m
g_j_m committed Dec 1, 2006
1 parent bc018dd commit 9ca4093eb04acbdbbb7eef63d142da30af0407d2
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/legend/qgslegend.cpp
@@ -1662,11 +1662,17 @@ void QgsLegend::showLegendLayerFileGroups()

do
{
// This call seems to fix a bug in Qt4.2 (qgis trac #405) whereby the
// setHidden() call in the if statement below doesn't result in
// correct drawing of the visible file group part of the tree,
// but doing this setHidden() call does result in correct drawing.
theItem->setHidden(false);

theFileGroup = dynamic_cast<QgsLegendLayerFileGroup*>(theItem);
if(theFileGroup)
{
theFileGroup->setHidden(!mShowLegendLayerFiles);
}
{
theFileGroup->setHidden(!mShowLegendLayerFiles);
}
}
while(theItem = nextItem(theItem));
}

0 comments on commit 9ca4093

Please sign in to comment.
You can’t perform that action at this time.