Commit 18b08573 authored by Marco Bubke's avatar Marco Bubke
Browse files

Fix but in the size compution in the Bauhaus

parent 7c91160f
......@@ -199,9 +199,10 @@ void QmlItemNode::paintInstance(QPainter *painter) const
void QmlItemNode::setSize(const QSizeF &size)
{
int penWidth = (nodeInstance().penWidth() / 2) * 2;
RewriterTransaction transaction = qmlModelView()->beginRewriterTransaction();
setVariantProperty("width", qRound(size.width()) - (nodeInstance().penWidth()));
setVariantProperty("height", qRound(size.height()) - (nodeInstance().penWidth()));
setVariantProperty("width", qRound(size.width()) - penWidth);
setVariantProperty("height", qRound(size.height()) - penWidth);
}
void QmlItemNode::setPosition(const QPointF &position)
......
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