Code cleanups

on behalf of Lebedev, see issue 1355
This commit is contained in:
Oliver Duis
2012-05-06 22:10:37 +02:00
parent 686188d6bb
commit 1483ecb47c
125 changed files with 750 additions and 747 deletions

View File

@@ -164,7 +164,7 @@ void HistogramPanel::resized (Gtk::Allocation& req) {
histogramArea->renderHistogram ();
histogramArea->queue_draw ();
if (histogramRGBArea->getFreeze()==true) {
if (histogramRGBArea->getFreeze()) {
histogramRGBArea->updateFreeze(false);
// set histogramRGBArea invalid;
histogramRGBArea->renderRGBMarks(-1, -1, -1);
@@ -231,10 +231,10 @@ void HistogramPanel::setHistRGBInvalid () {
// "Freeze" is not a button, but a RMB-click, so this is not in the RGBV-Toggle method
void HistogramPanel::toggleFreeze () {
if (histogramRGBArea->getFreeze()==true) {
if (histogramRGBArea->getFreeze()) {
histogramRGBArea->updateFreeze(false);
}
else if (histogramRGBArea->getShow()==true) {
else if (histogramRGBArea->getShow()) {
histogramRGBArea->updateFreeze(true);
}
return;