]> git.lyx.org Git - features.git/commit
InsetGraphics: use totalheight for height output
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 14 Aug 2019 14:55:43 +0000 (16:55 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:43 +0000 (15:48 +0200)
commit73e96d63123665aeaca885ce30ff8a18206411b1
tree9109abf0ce6daab3ab31242ef74912d69011e47b
parentce28714a92f87fc5a9b4b8f4e232ab718cdf318c
InsetGraphics: use totalheight for height output

Graphics "height" is only the height above the baseline and thus not
what most people will expect. Also, using height can result in a
division by zero with rotation.

Use totalheight now since this means "height of the figure" (independent
of the baseline).

The custom options field can be used if height is really desired.
We handle this in conversion/reversion, respectively, so document
output will not change.

Hence, file format change.

Fixes: #9676
development/FORMAT
lib/lyx2lyx/lyx_2_4.py
src/insets/InsetGraphics.cpp
src/tex2lyx/text.cpp
src/version.h