Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 0c59794d authored by Thorsten Zachmann's avatar Thorsten Zachmann

Fix run-through property

If there is a text on shape set the same run through values for the text
as for the shape it is contained on. This makes sure the text is visible
when a run through forground is set on the shape containing the text.
parent c36871fb
......@@ -494,7 +494,7 @@ public:
* The run through property is used to determine if the shape is behind, inside or before text.
* @param runThrough the new run through;
void setRunThrough(short int runThrough);
virtual void setRunThrough(short int runThrough);
* Changes the Shape to be visible or invisible.
......@@ -80,6 +80,7 @@ bool KoTosContainer::loadText(const KoXmlElement &element, KoShapeLoadingContext
textShape->setPosition(QPointF(0, 0));
return loadOdf;
......@@ -256,3 +257,12 @@ void KoTosContainer::shapeChanged(ChangeType type, KoShape *shape)
void KoTosContainer::setRunThrough(short int runThrough)
KoShape *textShape = this->textShape();
if (textShape) {
......@@ -91,6 +91,8 @@ public:
KoShape *createTextShape(KoResourceManager *documentResources = 0);
virtual void setRunThrough(short int runThrough);
/// constructor
KoTosContainer(KoTosContainerPrivate &);
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