fix legend handling of collapsed layers

git-svn-id: http://svn.osgeo.org/qgis/trunk@14705 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2010-11-17 22:03:14 +00:00
parent 337c290743
commit 75af27b8cc
2 changed files with 2 additions and 2 deletions

View File

@ -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" ^

View File

@ -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;