* fix for web bug #4518 by Salvatore Licciardi

git-svn-id: trunk@2312 -
This commit is contained in:
Tomas Hajny 2006-01-18 22:48:19 +00:00
parent 8a02b500ed
commit 10153d061d

View File

@ -371,7 +371,7 @@ begin
'*', '/': R := R / 100;
end;
case _Operator of
'^': SetDisplay(Power(Operand,R),false);
'^': if (Operand = 0)and(R <= 0) then Error else SetDisplay(Power(Operand,R),false);
'+': SetDisplay(Operand + R,false);
'-': SetDisplay(Operand - R,false);
'*': SetDisplay(Operand * R,false);