File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ void TriggerViewModel::InitializeGroups(const rc_trigger_t& pTrigger)
402
402
m_vGroups.RemoveNotifyTarget (*this );
403
403
m_vGroups.BeginUpdate ();
404
404
405
- SetMeasuredTrackedAsPercent (m_pTrigger != nullptr ? m_pTrigger-> measured_as_percent : false );
405
+ SetMeasuredTrackedAsPercent (pTrigger. measured_as_percent );
406
406
407
407
// this will not update the conditions collection because OnValueChange ignores it when m_vGroups.IsUpdating
408
408
SetSelectedGroupIndex (0 );
Original file line number Diff line number Diff line change @@ -233,6 +233,8 @@ TEST_CLASS(TriggerViewModel_Tests)
233
233
ParseAndRegenerate (" 0xH1234=0xH2345" ); // one condition
234
234
ParseAndRegenerate (" 0xH1234=0xH2345_0xX5555=1.3._R:0x face=678" ); // several conditions
235
235
ParseAndRegenerate (" I:0x 1234_A:0xH2345_0xH7777=345" ); // addsource/addaddress chain
236
+ ParseAndRegenerate (" M:0xH1234>3" ); // measured (not as percent)
237
+ ParseAndRegenerate (" Q:0xH1234>3" ); // measured (as percent)
236
238
}
237
239
238
240
TEST_METHOD (TestParseAndRegenerateWithAlts)
You can’t perform that action at this time.
0 commit comments