Exported Xaml mistaken due to wrong format number (Locale)

Bug #1521686 reported by Camal TAZINE on 2015-12-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
jazzynico

Bug Description

OS= Windows 10
Regional settings=France

Steps to reproduce the bug:
1- Open attached file "dessin-1.svg" in InkScape
-2 Save as xaml (Silverlight =no)

The value for Canvas.Top contains a comma, which is not accepted by visual studio

You will obtain the following xaml:

<?xml version="1.0" encoding="UTF-8"?>
<!--This file is NOT compatible with Silverlight-->
<Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stretch="Uniform">
  <Canvas Name="svg2" Width="744.09448819" Height="1052.3622047">
    <Canvas.RenderTransform>
      <TranslateTransform X="0" Y="0"/>
    </Canvas.RenderTransform>
    <Canvas.Resources/>
    <!--Unknown tag: sodipodi:namedview-->
    <!--Unknown tag: metadata-->
    <Canvas Name="layer1">
      <TextBlock xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" FontSize="40" FontWeight="Normal" FontFamily="sans-serif" FontStyle="normal" Foreground="#FF000000" Canvas.Left="168.57143" Canvas.Top="389,50507" Name="text4136">
        <Span whiteSpaceCollapse="preserve" FontSize="40">Hello World</Span>
      </TextBlock>
    </Canvas>
  </Canvas>
</Viewbox>

Camal TAZINE (camal-tazine) wrote :
jazzynico (jazzynico) wrote :

Thanks for your findings! I thought we already got rid of that kind of issues, but apparently we forgot a case. I'm going to take a look shortly.

Changed in inkscape:
assignee: nobody → jazzynico (jazzynico)
importance: Undecided → Medium
milestone: none → 0.92
status: New → Triaged
tags: added: exporting
removed: windows
jazzynico (jazzynico) wrote :

Fixed in the trunk, rev. 14497.

Changed in inkscape:
status: Triaged → Fix Committed
tags: added: backport-proposed
jazzynico (jazzynico) wrote :

Fix backported to the 0.91.x branch, rev. 13851.

Changed in inkscape:
milestone: 0.92 → 0.91.1
tags: removed: backport-proposed
jazzynico (jazzynico) on 2017-01-22
Changed in inkscape:
milestone: 0.91.1 → 0.92
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers