Browse Source

Suppress compiler warnings and add debug output for nonsensical unit conversions in typica.w

Neal Wilson 9 years ago
parent
commit
ea1e122c96
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/typica.w

+ 3
- 0
src/typica.w View File

@@ -7677,6 +7677,9 @@ void TemperatureDisplay::setValue(Measurement temperature)
7677 7677
                 case Units::Unitless:
7678 7678
                     display(QString("%1").arg(number.setNum(temperature.temperature(), 'f', 0)));
7679 7679
                     break;
7680
+                default:
7681
+					qDebug() << "Warning: Attempting to convert a non-temperature unit to a temperature unit";
7682
+					break;
7680 7683
             }
7681 7684
             break;
7682 7685
     }

Loading…
Cancel
Save