<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>399166</bug_id>
          
          <creation_ts>2018-09-28 05:27:24 +0000</creation_ts>
          <short_desc>SVG image will not be imported as vector layer in Krita 4.1.3</short_desc>
          <delta_ts>2018-10-10 09:57:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Layers/Vector</component>
          <version>4.1.3</version>
          <rep_platform>Debian unstable</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kentaro Hayashi">kenhys</reporter>
          <assigned_to name="Halla Rempt">halla</assigned_to>
          <cc>halla</cc>
    
    <cc>kenhys</cc>
          
          <cf_commitlink>https://commits.kde.org/krita/b98ae216d3dc5a0664f41a834c07735da3917c8c</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1790153</commentid>
    <comment_count>0</comment_count>
    <who name="Kentaro Hayashi">kenhys</who>
    <bug_when>2018-09-28 05:27:24 +0000</bug_when>
    <thetext>SUMMARY

  SVG image will not be imported as vector layer. It is imported as paint layer.


STEPS TO REPRODUCE

  1. Click [Layer] menu
  2. Select [Import/Export] menu
  3. Select [Import Layer...] menu
  4. Select svg image from dialog window

OBSERVED RESULT

  Selected svg image is imported as painter layer.

EXPECTED RESULT

  Selected svg image is imported as vector layer.

SOFTWARE VERSIONS

  Krita 1:4.1.3+dfsg-1
  KDE Plasma Version: 4:4.14.38-2
  KDE Frameworks Version: 4:4.14.38-2
  Qt Version: 5.11.1+dfsg-9

ADDITIONAL INFORMATION

  It seems that Krita 2.9 can import SVG as vecor layer.
    https://bugs.kde.org/show_bug.cgi?id=333451#c11

  This issue is discussed at forum but not tracked in bugs.kde.org.

    SVG import in Krita 4
    https://forum.kde.org/viewtopic.php?f=281&amp;t=151598&amp;p=402444&amp;hilit=svg+import#p396450

  As a workaround, copy&amp;paste from inkscape is work as expected ( pasted as vector layer)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1792415</commentid>
    <comment_count>1</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2018-10-08 09:08:12 +0000</bug_when>
    <thetext>Actuall</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1792430</commentid>
    <comment_count>2</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2018-10-08 10:03:17 +0000</bug_when>
    <thetext>Git commit 4511c00ff053a235fc8d04f112f334b2c722600e by Boudewijn Rempt.
Committed on 08/10/2018 at 10:02.
Pushed by rempt into branch &apos;master&apos;.

Import SVG as vector layers

M  +9    -3    libs/ui/kis_image_manager.cc
M  +17   -4    libs/ui/kis_import_catcher.cc
M  +30   -24   libs/ui/kis_layer_manager.cc
M  +8    -8    libs/ui/kis_layer_manager.h
M  +12   -12   libs/ui/kis_mask_manager.cc
M  +5    -5    libs/ui/kis_mask_manager.h
M  +20   -19   libs/ui/kis_node_manager.cpp
M  +1    -1    libs/ui/kis_node_manager.h

https://commits.kde.org/krita/4511c00ff053a235fc8d04f112f334b2c722600e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1793008</commentid>
    <comment_count>3</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2018-10-10 09:57:40 +0000</bug_when>
    <thetext>Git commit b98ae216d3dc5a0664f41a834c07735da3917c8c by Boudewijn Rempt.
Committed on 10/10/2018 at 07:41.
Pushed by rempt into branch &apos;krita/4.1&apos;.

Import SVG as vector layers
(cherry picked from commit 4511c00ff053a235fc8d04f112f334b2c722600e)

M  +9    -3    libs/ui/kis_image_manager.cc
M  +17   -4    libs/ui/kis_import_catcher.cc
M  +30   -24   libs/ui/kis_layer_manager.cc
M  +8    -8    libs/ui/kis_layer_manager.h
M  +12   -12   libs/ui/kis_mask_manager.cc
M  +5    -5    libs/ui/kis_mask_manager.h
M  +20   -19   libs/ui/kis_node_manager.cpp
M  +1    -1    libs/ui/kis_node_manager.h

https://commits.kde.org/krita/b98ae216d3dc5a0664f41a834c07735da3917c8c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>