Skip to content

Commit d227478

Browse files
committed
Corrected comparison of boolean with real. Corrected type comparison
For #4209 and #4210
1 parent e65e5e6 commit d227478

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)