jgit/org.eclipse.jgit.ui
Michael Keppler 1a72143780 Use baseline instead of centerline in PlotRenderer
If the text extent height of a to be rendered plot line is odd, then the
SWTPlotRenderer cannot calculate the correct Y position for drawing the
label and draws the label with a 1 pixel offset. SWT text drawing uses
the baseline as Y coordinate. Due to the given centerline API in the
AbstractPlotRenderer the overall calculation of the baseline for SWT is
effectively (height / 2) * 2, thereby rounding all odd heights downward
to the next even number.

This change pushes the division by 2 from the caller into the
implementations of drawText. A corresponding change will be pushed in
the egit repository.

Bug: 450813
Change-Id: I66f4e71873bb8e6f936fde573bbe4c35fe23a022
Signed-off-by: Michael Keppler <michael.keppler@gmx.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2014-11-29 01:30:13 +01:00
..
.settings Don't warn for methods that can be static 2014-07-02 00:36:38 +02:00
META-INF Prepare post 3.6.0-m1 builds 2014-11-12 18:51:54 +01:00
resources/org/eclipse/jgit/awtui Externalize strings from JGit 2010-05-19 14:37:16 -07:00
src/org/eclipse/jgit/awtui Use baseline instead of centerline in PlotRenderer 2014-11-29 01:30:13 +01:00
.classpath Externalize strings from JGit 2010-05-19 14:37:16 -07:00
.gitignore Finish removing Apache Felix maven-bundle-plugin 2010-01-12 11:46:55 -08:00
.project Revert "Hide Maven target directories from Eclipse" 2010-08-28 09:50:50 +02:00
about.html Add missing about.html files to all shipped bundles 2011-06-08 21:51:51 +02:00
build.properties Add missing about.html files to all shipped bundles 2011-06-08 21:51:51 +02:00
plugin.properties Fix plugin provider names to conform with release train requirement 2013-04-08 23:05:36 +02:00
pom.xml Prepare post 3.6.0-m1 builds 2014-11-12 18:51:54 +01:00