Center selected thumb in Filmstrip #5174
When opening an image, selecting the next/previous image or syncing the Filmstrip, the newly selected thumbnail is centered, unless it lies within the visible area more than 1 thumbnails-width away from either edge, in which case centering does not occur.
This commit is contained in:
@@ -1057,14 +1057,14 @@ void EditorPanel::open (Thumbnail* tmb, rtengine::InitialImage* isrc)
|
||||
} else {
|
||||
Gtk::Allocation alloc;
|
||||
iareapanel->imageArea->on_resized (alloc);
|
||||
|
||||
// When passing a photo as an argument to the RawTherapee executable, the user wants
|
||||
// this auto-loaded photo's thumbnail to be selected and visible in the Filmstrip.
|
||||
EditorPanel::syncFileBrowser();
|
||||
}
|
||||
|
||||
history->resetSnapShotNumber();
|
||||
navigator->setInvalid(ipc->getFullWidth(),ipc->getFullHeight());
|
||||
|
||||
// When passing a photo as an argument to the RawTherapee executable, the user wants
|
||||
// this auto-loaded photo's thumbnail to be selected and visible in the Filmstrip.
|
||||
EditorPanel::syncFileBrowser();
|
||||
}
|
||||
|
||||
void EditorPanel::close ()
|
||||
|
Reference in New Issue
Block a user