# HG changeset patch # User Chris Cannam # Date 1571059202 -3600 # Node ID 873ff035364c501fa02d57793c0e869383b7d583 # Parent bfd8b22fd67cf609d46f5d20a9bfe23a02128d12 Tidy / debug diff -r bfd8b22fd67c -r 873ff035364c layer/BoxLayer.cpp --- a/layer/BoxLayer.cpp Wed Oct 09 13:45:17 2019 +0100 +++ b/layer/BoxLayer.cpp Mon Oct 14 14:20:02 2019 +0100 @@ -223,10 +223,14 @@ } bool -BoxLayer::adoptExtents(double /* min */, double /* max */, QString unit) +BoxLayer::adoptExtents(double min, double max, QString unit) { auto model = ModelById::getAs(m_model); if (!model) return false; + + SVDEBUG << "BoxLayer[" << this << "]::adoptExtents: min " << min + << ", max " << max << ", unit " << unit << endl; + if (model->getScaleUnits() == "") { model->setScaleUnits(unit); return true; diff -r bfd8b22fd67c -r 873ff035364c widgets/ModelDataTableDialog.cpp --- a/widgets/ModelDataTableDialog.cpp Wed Oct 09 13:45:17 2019 +0100 +++ b/widgets/ModelDataTableDialog.cpp Mon Oct 14 14:20:02 2019 +0100 @@ -75,14 +75,6 @@ CommandHistory::getInstance()->registerToolbar(toolbar); -/* - action = new QAction(il.load("dataedit"), tr("Edit Selected Item"), this); - action->setShortcut(tr("Edit")); - action->setStatusTip(tr("Edit the selected item")); - connect(action, SIGNAL(triggered()), this, SLOT(editRow())); - toolbar->addAction(action); -*/ - QFrame *mainFrame = new QFrame; setCentralWidget(mainFrame);