To find correct dimension for an individual measurement translate its name.
This commit is contained in:
Roman Telezhynskyi 2020-11-04 16:16:59 +02:00
parent f3e3b9a45f
commit fd5c10c9a8

View File

@ -2116,7 +2116,7 @@ void MainWindow::StoreIndividualMDimensions()
auto StoreDimension = [this, measurements](IMD type) auto StoreDimension = [this, measurements](IMD type)
{ {
const QString name = m->MeasurementForDimension(type); const QString name = qApp->TrVars()->VarToUser(m->MeasurementForDimension(type));
const bool valid = not name.isEmpty() && measurements.contains(name); const bool valid = not name.isEmpty() && measurements.contains(name);
switch(type) switch(type)
{ {