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:
parent
686d830402
commit
57653d5cdf
|
@ -484,6 +484,10 @@ Loggable::do_this ( const char *s, bool reverse )
|
|||
void
|
||||
Loggable::undo ( void )
|
||||
{
|
||||
if ( ! _fp || /* journal not open */
|
||||
1 == _undo_offset ) /* nothing left to undo */
|
||||
return;
|
||||
|
||||
char *buf;
|
||||
|
||||
block_start();
|
||||
|
|
Loading…
Reference in New Issue