summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorSebastian Wüst <sebi@timewaster.de>2013-10-28 17:23:42 +0000
committerSebastian Wüst <sebi@timewaster.de>2013-10-28 17:23:42 +0000
commitc6ad2a34d38795059888d3c900dbf1047bfd5fdd (patch)
tree88de58a63003bd2ea6edda9c895d3c0466a38e6b /src/sp-text.cpp
parenttext change (diff)
parentFix for bug #1156394 (OCAL dialog: Close button in German localization contai... (diff)
downloadinkscape-c6ad2a34d38795059888d3c900dbf1047bfd5fdd.tar.gz
inkscape-c6ad2a34d38795059888d3c900dbf1047bfd5fdd.zip
mrege from trunk
(bzr r12417.1.31)
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index de5e63fe6..d2f433eba 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -293,7 +293,7 @@ Inkscape::XML::Node *SPText::write(Inkscape::XML::Document *xml_doc, Inkscape::X
return repr;
}
-Geom::OptRect SPText::bbox(Geom::Affine const &transform, SPItem::BBoxType type) {
+Geom::OptRect SPText::bbox(Geom::Affine const &transform, SPItem::BBoxType type) const {
Geom::OptRect bbox = SP_TEXT(this)->layout.bounds(transform);
// FIXME this code is incorrect
@@ -305,7 +305,7 @@ Geom::OptRect SPText::bbox(Geom::Affine const &transform, SPItem::BBoxType type)
return bbox;
}
-Inkscape::DrawingItem* SPText::show(Inkscape::Drawing &drawing, unsigned key, unsigned flags) {
+Inkscape::DrawingItem* SPText::show(Inkscape::Drawing &drawing, unsigned /*key*/, unsigned /*flags*/) {
Inkscape::DrawingGroup *flowed = new Inkscape::DrawingGroup(drawing);
flowed->setPickChildren(false);
flowed->setStyle(this->style);
@@ -326,11 +326,11 @@ void SPText::hide(unsigned int key) {
}
}
-const char* SPText::displayName() {
+const char* SPText::displayName() const {
return _("Text");
}
-gchar* SPText::description() {
+gchar* SPText::description() const {
SPStyle *style = this->style;
font_instance *tf = font_factory::Default()->FaceFromStyle(style);
@@ -364,7 +364,7 @@ gchar* SPText::description() {
return ret;
}
-void SPText::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) {
+void SPText::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const {
if (snapprefs->isTargetSnappable(Inkscape::SNAPTARGET_TEXT_BASELINE)) {
// Choose a point on the baseline for snapping from or to, with the horizontal position
// of this point depending on the text alignment (left vs. right)