Skip to content
Permalink
Browse files

fix legend handling of collapsed layers

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14705 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 17, 2010
1 parent 23f9055 commit 9e9eec94aa027ec098d707fcab58c7800b8bce51
Showing with 2 additions and 2 deletions.
  1. +1 −1 ms-windows/osgeo4w/package.cmd
  2. +1 −1 src/app/legend/qgslegend.cpp
@@ -165,7 +165,7 @@ if errorlevel 1 goto error

tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME%-grass-plugin-%VERSION%-%PACKAGE%.tar.bz2 ^
--exclude-from exclude ^
--exclude "*.pyc" \
--exclude "*.pyc" ^
"apps/%PACKAGENAME%/themes/classic/grass" ^
"apps/%PACKAGENAME%/themes/default/grass" ^
"apps/%PACKAGENAME%/themes/gis/grass" ^
@@ -345,7 +345,7 @@ void QgsLegend::mouseMoveEvent( QMouseEvent * e )
int line_y;
if ( layer )
{
QTreeWidgetItem *lastItem = item->childCount() > 0 ? item->child( item->childCount() - 1 ) : item;
QTreeWidgetItem *lastItem = item->childCount() > 0 && item->isExpanded() ? item->child( item->childCount() - 1 ) : item;
int y0 = visualItemRect( item ).top() + 1;
int y1 = visualItemRect( lastItem ).bottom() - 2;

0 comments on commit 9e9eec9

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