Skip to content

Commit

Permalink
#145 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ArsMasiuk committed Mar 8, 2021
1 parent 9cb130a commit ff14a9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Bugfixes:
- fixed building with OGDF support (#130, #139)
- fixed import of multiline labels from DOT (#141)
- fixed DOT: shape="box" not recognized (#140) - thanks casiosmu for fixing this!
- fixed crash after exporting to SVG and reopening the document (#145)

Linux:
- some setup issues fixed (#132, #133)
Expand Down
3 changes: 3 additions & 0 deletions src/qvgeioui/CImageExportDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ void CImageExportDialog::setScene(CEditorScene& scene)

void CImageExportDialog::updateTargetSize()
{
if (!m_scene)
return;

QSize size = m_scene->sceneRect().size().toSize();
if (cutToContent())
size = m_scene->itemsBoundingRect().adjusted(-20, -20, 20, 20).size().toSize();
Expand Down

0 comments on commit ff14a9d

Please sign in to comment.