]> git.lyx.org Git - lyx.git/commit
Get rid of autoBreakRow, which is obsoleted by allowMultiPar()
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 30 Mar 2015 17:45:01 +0000 (19:45 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 31 Mar 2015 15:02:00 +0000 (17:02 +0200)
commit4dcc73ebf0a4874cc51ca5fa316a148b0e15427d
tree23934f63d93d61d1d4b6107d9e622f6811516150
parent908e93df5060b29678cc51ad9a83c82fba1997cc
Get rid of autoBreakRow, which is obsoleted by allowMultiPar()

The only real user was Text::insertStringAsLine, but this got changed
in commit 2c7152ab.

While not other place did read the value, there is a side effect of
setAutobreakRow that merges exiting paragraphs. However, this is used
in two situations

* some constructors, where the inset is empty;

* InsetTabular::toggleFixedWidth, which actually contains itself some
  code to merge paragraphs.

Therefore the member and all associated code can be removed safely.
src/Buffer.cpp
src/Text.cpp
src/Text.h
src/insets/InsetCaption.cpp
src/insets/InsetCollapsable.cpp
src/insets/InsetIPA.cpp
src/insets/InsetInfo.cpp
src/insets/InsetPreview.cpp
src/insets/InsetTabular.cpp
src/insets/InsetText.cpp
src/insets/InsetText.h