Skip to content

Commit 9e9eec9

Browse files
author
jef
committed
fix legend handling of collapsed layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14705 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 23f9055 commit 9e9eec9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ms-windows/osgeo4w/package.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ if errorlevel 1 goto error
165165

166166
tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME%-grass-plugin-%VERSION%-%PACKAGE%.tar.bz2 ^
167167
--exclude-from exclude ^
168-
--exclude "*.pyc" \
168+
--exclude "*.pyc" ^
169169
"apps/%PACKAGENAME%/themes/classic/grass" ^
170170
"apps/%PACKAGENAME%/themes/default/grass" ^
171171
"apps/%PACKAGENAME%/themes/gis/grass" ^

src/app/legend/qgslegend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void QgsLegend::mouseMoveEvent( QMouseEvent * e )
345345
int line_y;
346346
if ( layer )
347347
{
348-
QTreeWidgetItem *lastItem = item->childCount() > 0 ? item->child( item->childCount() - 1 ) : item;
348+
QTreeWidgetItem *lastItem = item->childCount() > 0 && item->isExpanded() ? item->child( item->childCount() - 1 ) : item;
349349
int y0 = visualItemRect( item ).top() + 1;
350350
int y1 = visualItemRect( lastItem ).bottom() - 2;
351351

0 commit comments

Comments
 (0)