diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2011-05-26 21:17:37 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2011-05-26 21:17:37 +0000 |
| commit | d08f8e9ed468767cc64766eb80ea134bb5edb197 (patch) | |
| tree | 5ef0aa6763dc38420a0479469d4c2c8b352af65d /src/sp-guide.cpp | |
| parent | rename "set width" and "units per em" to "Em-size" (diff) | |
| download | inkscape-d08f8e9ed468767cc64766eb80ea134bb5edb197.tar.gz inkscape-d08f8e9ed468767cc64766eb80ea134bb5edb197.zip | |
add entry widget to guideline dialog to change guide's label
(and fix some label xml writing and rendering bugs)
(bzr r10234)
Diffstat (limited to 'src/sp-guide.cpp')
| -rw-r--r-- | src/sp-guide.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp index 1e51ee4d5..584a6a366 100644 --- a/src/sp-guide.cpp +++ b/src/sp-guide.cpp @@ -412,7 +412,7 @@ void sp_guide_set_normal(SPGuide &guide, Geom::Point const normal_to_line, bool */ } -void sp_guide_set_label(SPGuide &guide, char* label, bool const commit) +void sp_guide_set_label(SPGuide &guide, const char* label, bool const commit) { g_assert(SP_IS_GUIDE(&guide)); if (guide.views){ @@ -421,7 +421,7 @@ void sp_guide_set_label(SPGuide &guide, char* label, bool const commit) if (commit){ //XML Tree being used directly while it shouldn't be - guide.getRepr()->setAttribute("label", label); + guide.getRepr()->setAttribute("inkscape:label", label); } } |
