aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf M Petter2012-09-18 11:54:43 (EDT)
committerWim Jongman2012-09-18 11:54:43 (EDT)
commite64597c4a3c1fde835ab9abb615532008af81460 (patch)
tree1e829984f582dfcafba695bda41597ac6ede9206
parentf1fb20cc7bb5cfa6a5b470f720ad2ebf47c72b2f (diff)
downloadorg.eclipse.nebula-e64597c4a3c1fde835ab9abb615532008af81460.zip
org.eclipse.nebula-e64597c4a3c1fde835ab9abb615532008af81460.tar.gz
org.eclipse.nebula-e64597c4a3c1fde835ab9abb615532008af81460.tar.bz2
bug 389806: [PaperClips] AlignPrint with vertical alignment SWT.BOTTOM
does not work https://bugs.eclipse.org/bugs/show_bug.cgi?id=389806
-rw-r--r--widgets/paperclips/org.eclipse.nebula.paperclips.core/src/org/eclipse/nebula/paperclips/core/AlignPrint.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/paperclips/org.eclipse.nebula.paperclips.core/src/org/eclipse/nebula/paperclips/core/AlignPrint.java b/widgets/paperclips/org.eclipse.nebula.paperclips.core/src/org/eclipse/nebula/paperclips/core/AlignPrint.java
index 743c621..2ec41f2 100644
--- a/widgets/paperclips/org.eclipse.nebula.paperclips.core/src/org/eclipse/nebula/paperclips/core/AlignPrint.java
+++ b/widgets/paperclips/org.eclipse.nebula.paperclips.core/src/org/eclipse/nebula/paperclips/core/AlignPrint.java
@@ -173,7 +173,7 @@ class AlignIterator implements PrintIterator {
if (vAlign == SWT.CENTER)
offset.y = (height - size.y) / 2;
else if (vAlign == SWT.BOTTOM)
- offset.y = height - size.x;
+ offset.y = height - size.y;
if (vAlign != SWT.TOP)
size.y = height;