fix: convert mm to long

This commit is contained in:
Georgy Litvinov 2021-10-06 12:23:31 +02:00
parent 1f4f9d757d
commit 6843f73923
2 changed files with 6 additions and 5 deletions

View file

@ -3,7 +3,7 @@
xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:dep="http://openoffice.org/extensions/description/2006"
xmlns:xlink="http://www.w3.org/1999/xlink"> xmlns:xlink="http://www.w3.org/1999/xlink">
<identifier value="pro.litvinovg.epublishing" /> <identifier value="pro.litvinovg.epublishing" />
<version value="0.7.12" /> <version value="0.7.13" />
<platform value="all" /> <platform value="all" />
<display-name> <display-name>
<name lang="ru">Инструменты для создания электронных изданий</name> <name lang="ru">Инструменты для создания электронных изданий</name>

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="PageStyles" script:language="StarBasic" script:moduleType="normal"> Dim pDialog As Object <script:module xmlns:script="http://openoffice.org/2000/script" script:name="PageStyles" script:language="StarBasic" script:moduleType="normal">
Dim pDialog As Object
Sub pageStylesDialog Sub pageStylesDialog
Dim listBox As Object Dim listBox As Object
@ -356,7 +357,7 @@ Function covertMMtoLong(dimension As String) As Long
convertMMtoLong = -1 convertMMtoLong = -1
Exit Function Exit Function
EndIf EndIf
dimension = customReplace(dimension, &quot;,&quot;, &quot;.&quot;) dimension = customReplace(dimension, &quot;.&quot;, &quot;,&quot;)
If Not IsNumeric( dimension ) Then If Not IsNumeric( dimension ) Then
convertMMtoLong = -1 convertMMtoLong = -1
Exit Function Exit Function