]> git.lyx.org Git - features.git/commit
Cleanup handling of LFUN_LAYOUT_PARAGRAPH in getStatus
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 12 May 2016 15:31:47 +0000 (17:31 +0200)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:46 +0000 (17:55 -0400)
commitccc8ad4744545bf08eb22454c0f6cb91a590f059
tree19cae5bb98c1ed3b11342c258b1e567ae079eb09
parent0d21dca360b55d83acae2a15466fdb879831ff03
Cleanup handling of LFUN_LAYOUT_PARAGRAPH in getStatus

The way it works is:
* the inset defines allowParagraphCustomization() correctly
* Text::getStatus acts on it.

Note that, in Text::getStatus, testing for cur.inset().allowParagraphCustomization() does not make much sense, since one should pass the cursor idx as parameter. Actually, for some reason the safest bet is to use the owner of the Text object as inset.
src/Text3.cpp
src/insets/InsetScript.cpp
src/insets/InsetScript.h
src/insets/InsetTabular.cpp