Skip to content

Commit ba3ea59

Browse files
authored
Corrected comparison of boolean with real. Corrected type comparison (#4212)
For #4209 and #4210
1 parent f182b59 commit ba3ea59

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Buildings/Resources/C-Sources/plotInit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <stdlib.h>
99
#include <stdio.h>
10+
#include <string.h>
1011
#include "ModelicaUtilities.h"
1112

1213
#include "plotObjectStructure.h"

Buildings/Resources/C-Sources/plotSendReal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <string.h>
1010
#include <stdlib.h>
11+
#include "ModelicaUtilities.h"
1112

1213
void plotSendReal(void* object, const double* dbl){
1314
int i;

Buildings/Utilities/Plotters/BaseClasses/PartialPlotter.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ equation
130130
visible=activation == Buildings.Utilities.Plotters.Types.LocalActivation.use_activation),
131131
Ellipse(
132132
extent={{-95,67},{-81,53}},
133-
lineColor=DynamicSelect({235,235,235}, if activate > 0.5 then {0,255,0}
133+
lineColor=DynamicSelect({235,235,235}, if activate then {0,255,0}
134134
else {235,235,235}),
135-
fillColor=DynamicSelect({235,235,235}, if activate > 0.5 then {0,255,0}
135+
fillColor=DynamicSelect({235,235,235}, if activate then {0,255,0}
136136
else {235,235,235}),
137137
fillPattern=FillPattern.Solid,
138138
visible=activation == Buildings.Utilities.Plotters.Types.LocalActivation.use_input)}),

0 commit comments

Comments
 (0)