Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 6717 → Rev 6718

/branches/Version13x/Scribus/scribus/plugins/svgimplugin/svgplugin.cpp
709,6 → 709,9
setupTransform( b );
SvgStyle *gc = m_gc.current();
PageItem* ite = m_Doc->Items->at(z);
QWMatrix gcm = gc->matrix;
double coeff1 = sqrt(gcm.m11() * gcm.m11() + gcm.m12() * gcm.m12());
double coeff2 = sqrt(gcm.m21() * gcm.m21() + gcm.m22() * gcm.m22());
switch (ite->itemType())
{
case PageItem::ImageFrame:
716,7 → 719,7
QWMatrix mm = gc->matrix;
ite->moveBy(mm.dx(), mm.dy());
ite->setWidthHeight(ite->width() * mm.m11(), ite->height() * mm.m22());
ite->setLineWidth(ite->lineWidth() * ((mm.m11() + mm.m22()) / 2.0));
ite->setLineWidth(ite->lineWidth() * (coeff1 + coeff2) / 2.0);
if (ite->PicAvail)
ite->setImageXYScale(ite->width() / ite->pixm.width(), ite->height() / ite->pixm.height());
break;
724,7 → 727,7
case PageItem::TextFrame:
{
QWMatrix mm = gc->matrix;
ite->setLineWidth(ite->lineWidth() * ((mm.m11() + mm.m22()) / 2.0));
ite->setLineWidth(ite->lineWidth() * (coeff1 + coeff2) / 2.0);
}
break;
default:
740,7 → 743,7
mv.scale(viewScaleX, viewScaleY);
ite->PoLine.map(mv);
}
ite->setLineWidth(ite->lineWidth() * ((mm.m11() + mm.m22()) / 2.0));
ite->setLineWidth(ite->lineWidth() * (coeff1 + coeff2) / 2.0);
FPoint wh = getMaxClipF(&ite->PoLine);
ite->setWidthHeight(wh.x(), wh.y());
ite->Clip = FlattenPath(ite->PoLine, ite->Segments);