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

@@ -604,15 +604,15 @@ void Crop::refreshSize () {
std::ostringstream ostrin;
ostrin.precision (3);
// ostrin << h->get_value()/ppi->get_value() << " in x " << w->get_value()/ppi->get_value() << " in";;
ostrin << nh/ppi->get_value() << " in x " << nw/ppi->get_value() << " in";;
// ostrin << h->get_value()/ppi->get_value() << " in x " << w->get_value()/ppi->get_value() << " in";
ostrin << nh/ppi->get_value() << " in x " << nw/ppi->get_value() << " in";
sizein->set_text (ostrin.str ());
std::ostringstream ostrcm;
ostrcm.precision (3);
// ostrcm << h->get_value()/ppi->get_value()*2.54 << " cm x " << w->get_value()/ppi->get_value()*2.54 << " cm";;
ostrcm << nh/ppi->get_value()*2.54 << " cm x " << nw/ppi->get_value()*2.54 << " cm";;
// ostrcm << h->get_value()/ppi->get_value()*2.54 << " cm x " << w->get_value()/ppi->get_value()*2.54 << " cm";
ostrcm << nh/ppi->get_value()*2.54 << " cm x " << nw/ppi->get_value()*2.54 << " cm";
sizecm->set_text (ostrcm.str ());
}
@@ -642,7 +642,7 @@ void Crop::setDimensions (int mw, int mh) {
if (!wconnWasBlocked) wconn.block (false);
if (!hconnWasBlocked) hconn.block (false);
if (enabled->get_active()==false) {
if (!enabled->get_active()) {
nx = 0;
ny = 0;
nw = mw;
@@ -962,7 +962,7 @@ void Crop::cropManipReady () {
double Crop::getRatio () {
double r = -1.0;
if (fixr->get_active()==false)
if (!fixr->get_active())
return r;
r = cropratio[ratio->get_active_row_number()].value;