X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.simantics.fmil.core%2Fnative%2FFMUSimulator%2Fsrc%2Ffmu_control.cpp;h=ae86d2b047c387e8698a3f6037a1cf4db42fd66c;hb=refs%2Fchanges%2F37%2F2237%2F1;hp=dba9da20edab7b03defb68584249a0e823fbdca3;hpb=4282c2e792b39be912e3db8226c342867c2dc065;p=simantics%2Ffmil.git diff --git a/org.simantics.fmil.core/native/FMUSimulator/src/fmu_control.cpp b/org.simantics.fmil.core/native/FMUSimulator/src/fmu_control.cpp index dba9da2..ae86d2b 100644 --- a/org.simantics.fmil.core/native/FMUSimulator/src/fmu_control.cpp +++ b/org.simantics.fmil.core/native/FMUSimulator/src/fmu_control.cpp @@ -354,10 +354,10 @@ JNIEXPORT jint JNICALL Java_org_simantics_fmil_core_FMIL_setStringValue_1 const char *valueChars = env->GetStringUTFChars(value, 0); FMI1 fmi = fmus[id]; if (fmi.version == 1) { - FMI1_CS_SET_INTEGER(fmi.fmu, vr, value != 0, &error); + FMI1_CS_SET_STRING(fmi.fmu, vr, valueChars, &error); } else if (fmi.version == 2) { - FMI2_CS_SET_INTEGER(fmi.fmu, vr, value != 0, &error); + FMI2_CS_SET_STRING(fmi.fmu, vr, valueChars, &error); } env->ReleaseStringUTFChars(value, valueChars); if (!isEmpty(error)) {