mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 20:40:20 +02:00
fpvectorial: Fix svgreader to accept "in" as known length unit
git-svn-id: trunk@51117 -
This commit is contained in:
parent
3351cc3c41
commit
de4fbfafc7
@ -2935,6 +2935,13 @@ begin
|
||||
Result := Result * 10;
|
||||
DoProcessMM_End();
|
||||
end
|
||||
else if UnitStr = 'in' then
|
||||
begin
|
||||
ValueStr := Copy(AStr, 1, Len-2);
|
||||
Result := StrToFloat(ValueStr, FPointSeparator);
|
||||
Result := Result * 25.4;
|
||||
DoProcessMM_End();
|
||||
end
|
||||
else if UnitStr = 'px' then
|
||||
begin
|
||||
ValueStr := Copy(AStr, 1, Len-2);
|
||||
|
Loading…
Reference in New Issue
Block a user