Skip to content

Backport: y-axis bugfixes

Rafał Siejakowski requested to merge S-Rafael/inkscape:yaxis-backport into 1.2.x

This MR is a partial backport of commits 6c652008 and 1d6e8200 to the 1.2.x branch, fixing two issues which manifest themselves when the y-axis points up:

  • Objects are aligned to the visual top/bottom, depending on user's action; the alignment reference used to be flipped.
  • When the page is fitted to the drawing, the content is translated correctly, so that it lands on the resulting page.

There's a small and safe optimization: copy ellision in a range-for loop achieved by taking the variable by const&. Since this compiles, the strings iterated over weren't being modified, so copying them was just slowing things down unnecessarily.

Fixes #3609 (closed) Fixes #3613 (closed)

Merge request reports