Commit 21f4607f authored by Boudewijn Rempt's avatar Boudewijn Rempt

Refinements for the default setting of printable.

svn path=/trunk/koffice/; revision=757366
parent dc1ee4aa
......@@ -402,6 +402,13 @@ void KoShape::copySettings(const KoShape *shape) {
addConnectionPoint(point);
d->zIndex = shape->zIndex();
d->visible = shape->isVisible();
// Ensure printable is true by default
if (!d->visible)
d->printable = true;
else
d->printable = shape->isPrintable();
d->locked = shape->isLocked();
d->keepAspect = shape->keepAspectRatio();
d->localMatrix = shape->d->localMatrix;
......@@ -531,7 +538,10 @@ void KoShape::setPrintable(bool on)
bool KoShape::isPrintable() const
{
return d->printable;
if (d->visible)
return d->printable;
else
return false;
}
void KoShape::setSelectable(bool selectable) {
......
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