mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-19 00:04:52 -04:00
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:
parent
337c290743
commit
75af27b8cc
@ -165,7 +165,7 @@ if errorlevel 1 goto error
|
|||||||
|
|
||||||
tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME%-grass-plugin-%VERSION%-%PACKAGE%.tar.bz2 ^
|
tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME%-grass-plugin-%VERSION%-%PACKAGE%.tar.bz2 ^
|
||||||
--exclude-from exclude ^
|
--exclude-from exclude ^
|
||||||
--exclude "*.pyc" \
|
--exclude "*.pyc" ^
|
||||||
"apps/%PACKAGENAME%/themes/classic/grass" ^
|
"apps/%PACKAGENAME%/themes/classic/grass" ^
|
||||||
"apps/%PACKAGENAME%/themes/default/grass" ^
|
"apps/%PACKAGENAME%/themes/default/grass" ^
|
||||||
"apps/%PACKAGENAME%/themes/gis/grass" ^
|
"apps/%PACKAGENAME%/themes/gis/grass" ^
|
||||||
|
@ -345,7 +345,7 @@ void QgsLegend::mouseMoveEvent( QMouseEvent * e )
|
|||||||
int line_y;
|
int line_y;
|
||||||
if ( layer )
|
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 y0 = visualItemRect( item ).top() + 1;
|
||||||
int y1 = visualItemRect( lastItem ).bottom() - 2;
|
int y1 = visualItemRect( lastItem ).bottom() - 2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user