Inkscape.org
Beginners' Questions Viewport rendering error
  1. #1
    inkyinky inkyinky @inkyinky

    Inkscape 1.3 (0e150ed6c4, 2023-07-21)

    I have a large SVG file which originally was exported from Xara Designer.
    It can be opened in Inkscape and seems to be complete.
    When zooming in and out, a varying rectangle is in the viewport, partly covering the document content.
    This is seen in V1.3 (Windows 11, MSI installer), but was the same in V1.2 and earlier versions on Windows 10.

    I shrinked the document until the rendering error went away, and finally found one of the offending objects.
    It is rect8131.
    Once the object is deleted or hidden, the viewport is ok.

    ---

    My original file has a lot of such objects.
    Near to impossible to simply replace these objects by new ones made in Inkscape.

    How to get a good display?

     

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!--Generator: Xara Designer (www.xara.com), SVG filter version: 6.6.0.1-->
    
    <svg
       fill="none"
       fill-rule="evenodd"
       stroke="#000000"
       stroke-width="0.501"
       stroke-linejoin="bevel"
       stroke-miterlimit="10"
       font-family="'Times New Roman'"
       font-size="16px"
       style="font-variant-ligatures:none"
       version="1.1"
       overflow="visible"
       enable-background="new"
       width="112.50391"
       height="121.5"
       viewBox="0 -4500 112.50391 121.5"
       id="svg18774"
       sodipodi:docname="xxx.svg"
       inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
       xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
       xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:svg="http://www.w3.org/2000/svg">
      <sodipodi:namedview
         id="namedview18774"
         pagecolor="#505050"
         bordercolor="#eeeeee"
         borderopacity="1"
         inkscape:showpageshadow="0"
         inkscape:pageopacity="0"
         inkscape:pagecheckerboard="false"
         inkscape:deskcolor="#d1d1d1"
         inkscape:document-units="px"
         inkscape:zoom="0.32"
         inkscape:cx="478.125"
         inkscape:cy="692.1875"
         inkscape:current-layer="svg18774"
         inkscape:clip-to-page="false"
         labelstyle="default" />
      <defs
         id="defs1956">
        <linearGradient
           id="LinearGradient_25"
           gradientUnits="userSpaceOnUse"
           x1="0"
           y1="0"
           x2="0.071999997"
           y2="0"
           gradientTransform="matrix(0,1,-1,-32768,4447.496,-3.437)">
          <stop
             offset="0"
             stop-color="#ffffff"
             id="stop76" />
          <stop
             offset="1"
             stop-color="#9a9a9a"
             id="stop77" />
        </linearGradient>
        <linearGradient
           id="LinearGradient_27"
           gradientUnits="userSpaceOnUse"
           x1="0"
           y1="0"
           x2="0.071999997"
           y2="0"
           gradientTransform="matrix(0,1,-1,-32768,4397.246,-4.947)">
          <stop
             offset="0"
             stop-color="#ffffff"
             id="stop80" />
          <stop
             offset="1"
             stop-color="#9a9a9a"
             id="stop81" />
        </linearGradient>
      </defs>
      <rect
         x="4447.4961"
         y="-3.7438965"
         width="0.74900001"
         height="0.74900001"
         transform="matrix(0,-1,-1,0,0,0)"
         stroke="none"
         stroke-width="0.72"
         stroke-linejoin="miter"
         fill="url(#LinearGradient_25)"
         id="rect8117"
         style="display:inline;fill:url(#LinearGradient_25)" />
      <rect
         x="4397.2461"
         y="-5.2539062"
         width="0.74900001"
         height="0.74900001"
         transform="matrix(0,-1,-1,0,0,0)"
         stroke="none"
         stroke-width="0.72"
         stroke-linejoin="miter"
         fill="url(#LinearGradient_27)"
         id="rect8131"
         style="display:inline;fill:url(#LinearGradient_27)" />
      <ellipse
         style="fill:#ffff00;stroke:#ff0000;stroke-width:0.95622;stroke-linecap:round;stroke-linejoin:round;paint-order:markers fill stroke"
         id="path1"
         cx="-165.625"
         cy="-4059.375"
         rx="428.125"
         ry="440.625" />
    </svg>

     

  2. #2
    Polygon Polygon @Polygon🌶

    Can't test right now. Is this rectangle important, because it's just 0,749x0,749px in size?

  3. #3
    inkyinky inkyinky @inkyinky

    Yes, it IS important.
    Interestingly the rect8117 (same size) doesn't make trouble.

  4. #4
    inkyinky inkyinky @inkyinky

    Sent a bug report to gitlab.