]> git.lyx.org Git - features.git/commit
Now Inset::dimension is only an access to cache
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 6 Dec 2016 08:48:49 +0000 (09:48 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 6 Dec 2016 08:52:17 +0000 (09:52 +0100)
commit8aaec85c8cc43d2317b684b0977eb47dd686af96
treeef557b917e79df7ded8eaaaed09935f324610aa4
parentfd50fb720f45a9064ccd91c1066e80ce6b5aa8a5
Now Inset::dimension is only an access to cache

Up to now Inset::dimension was either a helper function to access
CoordCache, or... something else. This created problems to properly
use it.

In particular, the definition of InsetText::dimension created problems
for child classes. Removing this definition (actually renaming it to
dimensionHelper) allows to streamline the code.
src/BufferView.cpp
src/insets/Inset.h
src/insets/InsetCollapsable.cpp
src/insets/InsetCommand.h
src/insets/InsetIPAMacro.cpp
src/insets/InsetLine.cpp
src/insets/InsetLine.h
src/insets/InsetPhantom.cpp
src/insets/InsetText.cpp
src/insets/InsetText.h