diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2012-05-28 07:27:39 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2012-05-28 07:27:39 +0000 |
| commit | e9cec1110c7abef2d7c89161ca07d2819a7bdff1 (patch) | |
| tree | 35b594de2d302f580516a361ee026bc9c2ecb6d2 /src/display/canvas-text.cpp | |
| parent | Stop using deprecated GdkBitmap in custom cursors (diff) | |
| download | inkscape-e9cec1110c7abef2d7c89161ca07d2819a7bdff1.tar.gz inkscape-e9cec1110c7abef2d7c89161ca07d2819a7bdff1.zip | |
Cleanup of measure text for moving away from overlap.
(bzr r11430)
Diffstat (limited to 'src/display/canvas-text.cpp')
| -rw-r--r-- | src/display/canvas-text.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/display/canvas-text.cpp b/src/display/canvas-text.cpp index f7a8713b6..c7ca4ab16 100644 --- a/src/display/canvas-text.cpp +++ b/src/display/canvas-text.cpp @@ -255,8 +255,7 @@ sp_canvastext_update (SPCanvasItem *item, Geom::Affine const &affine, unsigned i item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2); } -SPCanvasItem * -sp_canvastext_new(SPCanvasGroup *parent, SPDesktop *desktop, Geom::Point pos, gchar const *new_text) +SPCanvasText *sp_canvastext_new(SPCanvasGroup *parent, SPDesktop *desktop, Geom::Point pos, gchar const *new_text) { // Pos specifies the position of the anchor, which is at the bounding box of the text itself (i.e. not at the border of the filled background rectangle) // The relative position of the anchor can be set using e.g. anchor_position = TEXT_ANCHOR_LEFT @@ -270,7 +269,7 @@ sp_canvastext_new(SPCanvasGroup *parent, SPDesktop *desktop, Geom::Point pos, gc g_free(ct->text); ct->text = g_strdup(new_text); - return item; + return ct; } |
