comparison layer/BoxLayer.cpp @ 1535:873ff035364c

Tidy / debug
author Chris Cannam
date Mon, 14 Oct 2019 14:20:02 +0100
parents 37df1530519d
children 4f8c72adbf43
comparison
equal deleted inserted replaced
1534:bfd8b22fd67c 1535:873ff035364c
221 221
222 return true; 222 return true;
223 } 223 }
224 224
225 bool 225 bool
226 BoxLayer::adoptExtents(double /* min */, double /* max */, QString unit) 226 BoxLayer::adoptExtents(double min, double max, QString unit)
227 { 227 {
228 auto model = ModelById::getAs<BoxModel>(m_model); 228 auto model = ModelById::getAs<BoxModel>(m_model);
229 if (!model) return false; 229 if (!model) return false;
230
231 SVDEBUG << "BoxLayer[" << this << "]::adoptExtents: min " << min
232 << ", max " << max << ", unit " << unit << endl;
233
230 if (model->getScaleUnits() == "") { 234 if (model->getScaleUnits() == "") {
231 model->setScaleUnits(unit); 235 model->setScaleUnits(unit);
232 return true; 236 return true;
233 } else { 237 } else {
234 return false; 238 return false;