[dia] vdx: fix position of bottom aligned text
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] vdx: fix position of bottom aligned text
- Date: Fri, 5 Sep 2014 18:01:08 +0000 (UTC)
commit 2989d9fbd3078b54071257924985d33955154c5b
Author: Hans Breuer <hans breuer org>
Date: Mon Sep 1 21:37:17 2014 +0200
vdx: fix position of bottom aligned text
Not shifting by height makes text position right for text_tests.vdx
Doing no shift for the other VerticalAlign screws them ...
plug-ins/vdx/vdx-import.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/vdx/vdx-import.c b/plug-ins/vdx/vdx-import.c
index 8870994..73c5578 100644
--- a/plug-ins/vdx/vdx-import.c
+++ b/plug-ins/vdx/vdx-import.c
@@ -2209,7 +2209,11 @@ plot_text(const struct vdx_Text *Text, const struct vdx_XForm *XForm,
if (TextBlock && TextBlock->VerticalAlign == 2)
{
vert_align = VALIGN_BOTTOM;
- p.y += XForm->Height;
+ /*
+ * Not shifting by height makes text position right for text_tests.vdx
+ * Doing no shift for the other VerticalAlign screws them ...
+ p.y -= XForm->Height;
+ */
}
height = Char->Size*vdx_Font_Size_Conversion;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]