Sharpening contrast mask - Bug, fixed by @Hombre57, fixes #4620
This commit is contained in:
@@ -1023,6 +1023,7 @@ void EditorPanel::open (Thumbnail* tmb, rtengine::InitialImage* isrc)
|
|||||||
ipc->setPreviewScale (10); // Important
|
ipc->setPreviewScale (10); // Important
|
||||||
tpc->initImage (ipc, tmb->getType() == FT_Raw);
|
tpc->initImage (ipc, tmb->getType() == FT_Raw);
|
||||||
ipc->setHistogramListener (this);
|
ipc->setHistogramListener (this);
|
||||||
|
iareapanel->imageArea->indClippedPanel->silentlyDisableSharpMask();
|
||||||
|
|
||||||
// iarea->fitZoom (); // tell to the editorPanel that the next image has to be fitted to the screen
|
// iarea->fitZoom (); // tell to the editorPanel that the next image has to be fitted to the screen
|
||||||
iareapanel->imageArea->setPreviewHandler (previewHandler);
|
iareapanel->imageArea->setPreviewHandler (previewHandler);
|
||||||
|
@@ -98,6 +98,14 @@ void IndicateClippedPanel::toggleFocusMask ()
|
|||||||
previewFocusMask->set_active(!previewFocusMask->get_active());
|
previewFocusMask->set_active(!previewFocusMask->get_active());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void IndicateClippedPanel::silentlyDisableSharpMask ()
|
||||||
|
{
|
||||||
|
ConnectionBlocker conBlocker(connSharpMask);
|
||||||
|
previewSharpMask->set_active(false);
|
||||||
|
previewSharpMask->set_image(*iSoff);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void IndicateClippedPanel::toggleSharpMask ()
|
void IndicateClippedPanel::toggleSharpMask ()
|
||||||
{
|
{
|
||||||
previewSharpMask->set_active(!previewSharpMask->get_active());
|
previewSharpMask->set_active(!previewSharpMask->get_active());
|
||||||
|
@@ -40,6 +40,7 @@ public:
|
|||||||
void buttonToggled(Gtk::ToggleButton* tb);
|
void buttonToggled(Gtk::ToggleButton* tb);
|
||||||
void toggleClipped(bool highlights); // inverts a toggle programmatically
|
void toggleClipped(bool highlights); // inverts a toggle programmatically
|
||||||
void toggleFocusMask();
|
void toggleFocusMask();
|
||||||
|
void silentlyDisableSharpMask(); // toggle the button off without throwing a toggle event
|
||||||
void toggleSharpMask();
|
void toggleSharpMask();
|
||||||
|
|
||||||
sigc::connection connFocusMask, connSharpMask, connClippedS, connClippedH;
|
sigc::connection connFocusMask, connSharpMask, connClippedS, connClippedH;
|
||||||
|
Reference in New Issue
Block a user