Exported Xaml mistaken due to wrong format number (Locale)

Bug #1521686 reported by Camal TAZINE
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
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>

Tags: exporting xaml
Revision history for this message
Camal TAZINE (camal-tazine) wrote :
Revision history for this message
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
Revision history for this message
jazzynico (jazzynico) wrote :

Fixed in the trunk, rev. 14497.

Changed in inkscape:
status: Triaged → Fix Committed
tags: added: backport-proposed
Revision history for this message
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)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.