diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2011-06-22 07:50:13 +0000 |
|---|---|---|
| committer | Felipe C. da S. Sanches <juca@members.fsf.org> | 2011-06-22 07:50:13 +0000 |
| commit | 7a4aa96e6c3dabfccb8c2be1c3ff86572b187a6f (patch) | |
| tree | 84d677bf5cf06ab84457703dcc0428df215bf47d /src/display/canvas-text.cpp | |
| parent | cmake: inkscape source dirs were included using system setting (diff) | |
| download | inkscape-7a4aa96e6c3dabfccb8c2be1c3ff86572b187a6f.tar.gz inkscape-7a4aa96e6c3dabfccb8c2be1c3ff86572b187a6f.zip | |
oops! I forgot to put "break;"s in my switch statement :-P
(bzr r10337)
Diffstat (limited to 'src/display/canvas-text.cpp')
| -rw-r--r-- | src/display/canvas-text.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/display/canvas-text.cpp b/src/display/canvas-text.cpp index 22342bb71..842425f50 100644 --- a/src/display/canvas-text.cpp +++ b/src/display/canvas-text.cpp @@ -183,22 +183,28 @@ sp_canvastext_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned i case TEXT_ANCHOR_LEFT: anchor_offset_x = -2*border; anchor_offset_y = -extents.height/2; + break; case TEXT_ANCHOR_RIGHT: anchor_offset_x = extents.width + 2*border; anchor_offset_y = -extents.height/2; + break; case TEXT_ANCHOR_BOTTOM: anchor_offset_x = extents.width/2; anchor_offset_y = 2*border; + break; case TEXT_ANCHOR_TOP: anchor_offset_x = extents.width/2; anchor_offset_y = -extents.height - 2*border; + break; case TEXT_ANCHOR_ZERO: anchor_offset_x = 0; anchor_offset_y = 0; + break; case TEXT_ANCHOR_CENTER: default: anchor_offset_x = extents.width/2; anchor_offset_y = -extents.height/2; + break; } item->x1 -= anchor_offset_x; |
