Commit b24b02a0 authored by Adrian Boguszewski's avatar Adrian Boguszewski

Added normalized path to flowtext

Fixed bugs:
  - https://launchpad.net/bugs/1555152

(bzr r14889)
parent 3af39402
......@@ -49,6 +49,11 @@ public:
bool _optimizeScaledText;
/** Converts the text object to its component curves */
SPCurve *getNormalizedBpath() const {
return layout.convertToCurves();
}
/** Optimize scaled flow text on next set_transform. */
void optimizeScaledText()
{_optimizeScaledText = true;}
......
......@@ -1776,11 +1776,14 @@ sp_selected_path_do_offset(SPDesktop *desktop, bool expand, double prefOffset)
SPItem *item = *l;
SPCurve *curve = NULL;
if (!SP_IS_SHAPE(item) && !SP_IS_TEXT(item))
if (!SP_IS_SHAPE(item) && !SP_IS_TEXT(item) && !SP_IS_FLOWTEXT(item))
continue;
else if (SP_IS_SHAPE(item)) {
curve = SP_SHAPE(item)->getCurve();
}
else if (SP_IS_FLOWTEXT(item)) {
curve = SP_FLOWTEXT(item)->getNormalizedBpath();
}
else { // Item must be SP_TEXT
curve = SP_TEXT(item)->getNormalizedBpath();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment