Inkscape.org
Beyond the Basics Beta: Resize text object affects object it was duplicated from.
  1. #1
    ronburk ronburk @ronburk

    1.0beta1 (fe3e306, 2019-09-17), Windows 7

    1. open fresh document
    2. create text rectangle
    3. enter enough text to cause wrapping
    4. F1 to switch to selection tool
    5. Ctrl-D to duplicate text object
    6. Shift-DownArrow until objects are no longer overlapping
    7. F8 to select "create and edit text objects" tool
    8. Use tool to resize the text rectangle
    9. observe that both text rectangles are being resized even though only one is selected.

    Skimmed a few hundred gitlab bugs but didn't spot anything like this.

  2. #2
    ronburk ronburk @ronburk

    Probably doesn't happen with clean profile directory.

  3. #3
    ronburk ronburk @ronburk
    *

    OTOH, seems to repro if I force creation of fresh profile directory.

    Ede_123

    SET INKSCAPE_PROFILE_DIR=.\inkprof

    c:\bin\InkscapeBeta\bin\inkscape.com

    Resulting .svg indeed seems to be using same rect for both text objects:

    Ede_123

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <svg
       xmlns:dc="http://purl.org/dc/elements/1.1/"
       xmlns:cc="http://creativecommons.org/ns#"
       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       xmlns:svg="http://www.w3.org/2000/svg"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
       xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
       sodipodi:docname="text resize dup bug.svg"
       inkscape:version="1.0beta1 (fe3e306, 2019-09-17)"
       id="svg8"
       version="1.1"
       viewBox="0 0 210 297"
       height="297mm"
       width="210mm">
      <defs
         id="defs2">
        <rect
           id="rect12"
           height="46.869047"
           width="106.58929"
           y="28.72619"
           x="21.922619" />
      </defs>
      <sodipodi:namedview
         inkscape:window-maximized="0"
         inkscape:window-y="175"
         inkscape:window-x="175"
         inkscape:window-height="931"
         inkscape:window-width="1561"
         showgrid="false"
         inkscape:document-rotation="0"
         inkscape:current-layer="layer1"
         inkscape:document-units="mm"
         inkscape:cy="560"
         inkscape:cx="400"
         inkscape:zoom="0.35"
         inkscape:pageshadow="2"
         inkscape:pageopacity="0.0"
         borderopacity="1.0"
         bordercolor="#666666"
         pagecolor="#ffffff"
         id="base" />
      <metadata
         id="metadata5">
        <rdf:RDF>
          <cc:Work
             rdf:about="">
            <dc:format>image/svg+xml</dc:format>
            <dc:type
               rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
            <dc:title></dc:title>
          </cc:Work>
        </rdf:RDF>
      </metadata>
      <g
         id="layer1"
         inkscape:groupmode="layer"
         inkscape:label="Layer 1">
        <text
           style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;shape-inside:url(#rect12);fill:#000000;fill-opacity:1;stroke:none"
           id="text10"
           xml:space="preserve"><tspan
             x="21.921875"
             y="38.382028"
             sodipodi:role="line"><tspan>Now is the time for </tspan></tspan><tspan
             x="21.921875"
             y="51.611154"
             sodipodi:role="line"><tspan>all good men</tspan></tspan></text>
        <text
           transform="translate(-7.5595238,89.958333)"
           xml:space="preserve"
           id="text18"
           style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;shape-inside:url(#rect12);fill:#000000;fill-opacity:1;stroke:none"><tspan
             x="21.921875"
             y="38.382028"
             sodipodi:role="line"><tspan>Now is the time for </tspan></tspan><tspan
             x="21.921875"
             y="51.611154"
             sodipodi:role="line"><tspan>all good men</tspan></tspan></text>
      </g>
    </svg>

     

     

     

  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    I see in the dev list mention of delay due to flow text issues, so I think they are aware.

    When posting code to this forum, instead of the quote tool, you might want to use the text style dropdown menu "Formatted",

     

    which will give you results like this:

    <defs
         id="defs2">
        <rect
           id="rect12"
           height="46.869047"
           width="106.58929"
           y="28.72619"
           x="21.922619" />
      </defs>
    
    

     

    Have a nice day.

    TD

  5. #5
    ronburk ronburk @ronburk

    > I see in the dev list mention of delay due to flow text issues, so I think they are aware.

    Hmmm. Nothing to do with text flow, of course. Objects are being cross-linked; .svg file is effectively corrupted by dup operation. I'm surprised if that's known and has no actual bug logged against it.

    > When posting code to this forum, instead of the quote tool, you might want to use the text style dropdown menu "Formatted",

    Thanks; the lack of a preview button makes me surprisingly slow to learn these things. I guess the intent was people would just keep hitting the Edit button to retry.

     

  6. #6
    Tyler Durden Tyler Durden @TylerDurden
    ronburk

    Hmmm. Nothing to do with text flow, of course. Objects are being cross-linked; .svg file is effectively corrupted by dup operation. I'm surprised if that's known and has no actual bug logged against it.

    Text flow architecture is significantly different from .92.x in the upcoming Inkscape version, to follow SVG2: https://www.w3.org/TR/SVG2/text.html#TextShapeInside

    A new shape is not being generated in the defs upon duplication, the way a new flowRegion was generated in the earlier implementation 

    Of course, flow being broken was mentioned by Jabier a couple of weeks ago: http://inkscape.13.x6.nabble.com/Request-to-postpone-release-of-Inkscape-1-0-Beta-td4983523.html#a4983524

     

    Have a nice day.

    TD

     

     

  7. #7
    Jabiertxo Arraiza Cenoz Jabiertxo Arraiza Cenoz @jabiertxof

    Flow text is fixed in beta, the things I write to CR are fixed. But this is a unhandled bug. Could anyone open a new issue and asign to me?

    Regards

  8. #8
    ronburk ronburk @ronburk

    Might as well meet the new bug tracker, so I gave it a try: https://gitlab.com/inkscape/inbox/issues/928

     

  9. #9
    Mechcaptain Mechcaptain @Mechcaptain

    This is still a problem in Inkscape 1.1.1 using space bar tap duplication

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Beta: Resize text object affects object it was duplicated from.