summaryrefslogtreecommitdiff
path: root/wizards/source/euro/Writer.xba
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2001-12-06 12:11:43 +0000
committerBehrend Cornelius <bc@openoffice.org>2001-12-06 12:11:43 +0000
commitedf07f804ca915c14f6864ff13cc4b83bad80b8a (patch)
treeaee630ff0b3cec33883c5319940ae2affabb8509 /wizards/source/euro/Writer.xba
parentb8213b7f8a8771a0719eb2b9de564cd271cb7ce3 (diff)
#95671# converting of texdocumentfields now improved
Diffstat (limited to 'wizards/source/euro/Writer.xba')
-rw-r--r--wizards/source/euro/Writer.xba4
1 files changed, 2 insertions, 2 deletions
diff --git a/wizards/source/euro/Writer.xba b/wizards/source/euro/Writer.xba
index 3c5999796331..3833402baa85 100644
--- a/wizards/source/euro/Writer.xba
+++ b/wizards/source/euro/Writer.xba
@@ -57,12 +57,12 @@ Dim MaxIndex as Integer
If CheckFormatType(oTextField) Then
If oTextField.PropertySetInfo.HasPropertybyName(&quot;Value&quot;) Then
If Not oTextField.SupportsService(&quot;com.sun.star.text.TextField.GetExpression&quot;) Then
- oTextField.Content = Str(oTextField.Value/CurrFactor)
+ oTextField.Content = CStr(Round(oTextField.Value/CurrFactor,2))
End If
ElseIf oTextField.TextFieldMaster.PropertySetInfo.HasPropertyByName(&quot;Value&quot;) Then
CurInstanceName = oTextField.TextFieldMaster.InstanceName
If Not FieldinArray(InstanceNames(), MaxIndex, CurInstanceName) Then
- oTextField.TextFieldMaster.Content = Str(oTextField.TextFieldMaster.Value/CurrFactor)
+ oTextField.TextFieldMaster.Content = CStr(Round(oTextField.TextFieldMaster.Value/CurrFactor,2))
InstanceNames(MaxIndex) = CurInstanceName
MaxIndex = MaxIndex + 1
End If