Commit 82f4e49c authored by Isaac Clerencia's avatar Isaac Clerencia

Update connectors when shape is resized

svn path=/trunk/koffice/; revision=564124
parent 18612447
......@@ -110,7 +110,18 @@ void KoShape::resize( const QSizeF &size )
{
if(m_size == size)
return;
double fx = size.width() / m_size.width();
double fy = size.height() / m_size.height();
m_size = size;
for ( int i = 0; i < m_connectors.size(); ++i )
{
QPointF &point = m_connectors[i];
point.setX(point.x() * fx);
point.setY(point.y() * fy);
}
recalcMatrix();
shapeChanged(SizeChanged);
}
......
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