Verified Commit 2aa12c3b authored by ita1024's avatar ita1024

Fix pipe's resizing

parent fdc0a09f
......@@ -3,8 +3,9 @@ Semantik 1.2.1
* Fix duplicate reference values
* Fix double prompts for overwriting files
* Fix invisible map variables immediately after opening a map
* Fix the tab navigation on the document generator dialog
* Fix the text alignment on boundary objects (diagrams)
* Fix document generator dialog's tab navigation
* Fix boundary objects' text alignment (diagrams)
* Fix pipe objects' resizing (diagrams)
* Enable newlines on most diagram objects #89
* Add global settings for commands to execute after a template is called
......
......@@ -245,6 +245,11 @@ QPoint box_item::get_point(int i_oP)
QSize box_item::best_size(const QPointF &dims)
{
if (doc.toPlainText().isEmpty())
{
return QSize(fceil(dims.x(), GRID), fceil(dims.y(), GRID));
}
int x = dims.x();
x = GRID * (x / GRID);
if (x < GRID) x = GRID;
......
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