Browse Source

* Fixed bug #7445

git-svn-id: trunk@4727 -
michael 19 years ago
parent
commit
8d6cc357c0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      rtl/objpas/typinfo.pp

+ 4 - 4
rtl/objpas/typinfo.pp

@@ -1304,22 +1304,22 @@ begin
         AMethod.Data:=Instance;
         AMethod.Data:=Instance;
         Case GetTypeData(PropInfo^.PropType)^.FloatType of
         Case GetTypeData(PropInfo^.PropType)^.FloatType of
           ftSingle:
           ftSingle:
-            if ((PropInfo^.PropProcs shr 6) and 1)<>0 then
+            if ((PropInfo^.PropProcs shr 6) and 1)=0 then
               Result:=TGetSingleProc(AMethod)()
               Result:=TGetSingleProc(AMethod)()
             else
             else
               Result:=TGetSingleProcIndex(AMethod)(PropInfo^.Index);
               Result:=TGetSingleProcIndex(AMethod)(PropInfo^.Index);
           ftDouble:
           ftDouble:
-            if ((PropInfo^.PropProcs shr 6) and 1)<>0 then
+            if ((PropInfo^.PropProcs shr 6) and 1)=0 then
               Result:=TGetDoubleProc(AMethod)()
               Result:=TGetDoubleProc(AMethod)()
             else
             else
               Result:=TGetDoubleProcIndex(AMethod)(PropInfo^.Index);
               Result:=TGetDoubleProcIndex(AMethod)(PropInfo^.Index);
           ftExtended:
           ftExtended:
-            if ((PropInfo^.PropProcs shr 6) and 1)<>0 then
+            if ((PropInfo^.PropProcs shr 6) and 1)=0 then
               Result:=TGetExtendedProc(AMethod)()
               Result:=TGetExtendedProc(AMethod)()
             else
             else
               Result:=TGetExtendedProcIndex(AMethod)(PropInfo^.Index);
               Result:=TGetExtendedProcIndex(AMethod)(PropInfo^.Index);
           ftCurr:
           ftCurr:
-            if ((PropInfo^.PropProcs shr 6) and 1)<>0 then
+            if ((PropInfo^.PropProcs shr 6) and 1)=0 then
               Result:=TGetCurrencyProc(AMethod)()
               Result:=TGetCurrencyProc(AMethod)()
             else
             else
               Result:=TGetCurrencyProcIndex(AMethod)(PropInfo^.Index);
               Result:=TGetCurrencyProcIndex(AMethod)(PropInfo^.Index);