Commit f10371e6 authored by Sven Langkamp's avatar Sven Langkamp
Browse files

fix text shape position when inserted by the text tool

Based on patch by Annarosa Agarossi
CCBUG:305323
parent 0b782e42
......@@ -54,7 +54,7 @@ void KisToolText::finishRect(const QRectF &rect)
KoShapeFactoryBase* textFactory = KoShapeRegistry::instance()->value(shapeString);
if (textFactory) {
KoShape* shape = textFactory->createDefaultShape(canvas()->shapeController()->resourceManager());
shape->setPosition(rect.topLeft());
shape->setPosition(r.topLeft());
// If the shape is an artistic shape we keep the aspect ratio so the text isn't stretched
if (shapeString == "ArtisticText") {
qreal ratio = rect.height()/shape->size().height();
......
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