Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Related to the bugfix yesterday. #375

Merged
merged 0 commits into from

4 participants

@bholland

...etermined by the font ascent.

The font size in the legend was only determined by the font ascent. This has been fixed.

src/core/composer/qgscomposerlegend.cpp
@@ -246,7 +246,7 @@ QSizeF QgsComposerLegend::drawGroupItemTitle( QgsComposerGroupItem* groupItem, Q
QStringList lines = splitStringForWrapping( groupItem->text() );
for ( QStringList::Iterator groupPart = lines.begin(); groupPart != lines.end(); ++groupPart )
{
- y += fontAscentMillimeters( mGroupFont );
+ y += fontAscentMillimeters( mGroupFont ) + fontDescentMillimeters( mGroupFont );
@NathanW2 Collaborator
NathanW2 added a note

Are there any cases where you would want to use just ascent rather then both together. If not then it might be worth wrapping both in a single function to save the ascent + descent code everywhere.

@bholland
bholland added a note
@NathanW2 Collaborator
NathanW2 added a note

Well I normally just use the search function in my text editor, which normally works fine. You can load the project in Qt Creator which will let you do something like VS can do to find references method or variable. Here is how to set it up using eclipse http://linfiniti.com/2011/12/compiling-qgis-with-eclipts-cdt-on-ubuntu/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@mach0
Owner

Any News on this? Nathan?

@bholland
@slarosa slarosa merged commit 2df1a20 into qgis:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 0 deletions.
Something went wrong with that request. Please try again.