Timeline: Don't die when undo function is used when no project is open or when there is nothing left to undo.

This commit is contained in:
Jonathan Moore Liles 2014-07-21 22:31:10 -07:00
parent 686d830402
commit 57653d5cdf
1 changed files with 4 additions and 0 deletions

View File

@ -484,6 +484,10 @@ Loggable::do_this ( const char *s, bool reverse )
void void
Loggable::undo ( void ) Loggable::undo ( void )
{ {
if ( ! _fp || /* journal not open */
1 == _undo_offset ) /* nothing left to undo */
return;
char *buf; char *buf;
block_start(); block_start();