From 0002340da590611f635775d0555c66c7f22db09c Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Thu, 10 Jan 2019 18:12:48 +0100 Subject: infinite canvas (closes #20) --- src/gui/undocommands.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gui/undocommands.cpp') diff --git a/src/gui/undocommands.cpp b/src/gui/undocommands.cpp index 8a00536..82b9455 100644 --- a/src/gui/undocommands.cpp +++ b/src/gui/undocommands.cpp @@ -29,16 +29,14 @@ GraphUpdateCommand::GraphUpdateCommand(TikzScene *scene, QUndoCommand *parent) : void GraphUpdateCommand::undo() { _scene->tikzDocument()->refreshTikz(); - //refreshSceneBounds does nothing - //_scene->refreshSceneBounds(); + _scene->refreshSceneBounds(); _scene->invalidate(); } void GraphUpdateCommand::redo() { _scene->tikzDocument()->refreshTikz(); - //refreshSceneBounds does nothing - //_scene->refreshSceneBounds(); + _scene->refreshSceneBounds(); _scene->invalidate(); } -- cgit v1.2.3