From 46b6c9c130a769ffdef9a95245bc160ca78a9ae4 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Wed, 23 Sep 2015 20:19:39 +0200 Subject: [PATCH] Wrong naming of snapshots in SETM, fixes #2915 --- rtgui/editorpanel.cc | 1 + rtgui/history.h | 1 + 2 files changed, 2 insertions(+) diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index 7a234acb3..33dad86ca 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -567,6 +567,7 @@ void EditorPanel::open (Thumbnail* tmb, rtengine::InitialImage* isrc) Gtk::Allocation alloc; iareapanel->imageArea->on_resized(alloc); } + history->resetSnapShotNumber(); } void EditorPanel::close () diff --git a/rtgui/history.h b/rtgui/history.h index 1c3e9e0b4..daf3b9205 100644 --- a/rtgui/history.h +++ b/rtgui/history.h @@ -126,6 +126,7 @@ public: void redo (); bool blistenerLock; + void resetSnapShotNumber() {bmnum = 1;}; }; #endif