Fixed a crash in document mode

preferencesAboutTextFull
Didier Clerc 11 years ago
parent a2a729c888
commit 30061212f1
  1. 3
      src/domain/UBGraphicsItemUndoCommand.cpp
  2. 2
      src/domain/UBGraphicsItemUndoCommand.h
  3. 3
      src/gui/UBDocumentNavigator.cpp

@ -159,7 +159,7 @@ void UBGraphicsItemUndoCommand::undo()
}
void UBGraphicsItemUndoCommand::redo()
/*void UBGraphicsItemUndoCommand::redo()
{
// the Undo framework calls a redo while appending the undo command.
// as we have already plotted the elements, we do not want to do it twice
@ -238,3 +238,4 @@ void UBGraphicsItemUndoCommand::redo()
mFirstRedo = false;
}
}
*/

@ -52,7 +52,7 @@ class UBGraphicsItemUndoCommand : public UBAbstractUndoCommand
protected:
virtual void undo();
virtual void redo();
//virtual void redo();
private:
UBGraphicsScene* mScene;

@ -142,7 +142,8 @@ void UBDocumentNavigator::onScrollToSelectedPage(int index)
}
c++;
}
centerOn(mSelectedThumbnail);
if(NULL != mSelectedThumbnail)
centerOn(mSelectedThumbnail);
}
/**

Loading…
Cancel
Save