senseless fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2078 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2001-05-31 22:34:05 +00:00
parent a82f6b71b9
commit b5311a0004
3 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
* paragraph.C (BreakParagraph): set the inset_owner in the new par
to the same as the par we break from
2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com> 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
* commandtags.h: add LFUN_INSET_WIDE_FLOAT * commandtags.h: add LFUN_INSET_WIDE_FLOAT

View File

@ -964,6 +964,8 @@ void LyXParagraph::BreakParagraph(BufferParams const & bparams,
{ {
// create a new paragraph // create a new paragraph
LyXParagraph * tmp = new LyXParagraph(this); LyXParagraph * tmp = new LyXParagraph(this);
// remember to set the inset_owner
tmp->SetInsetOwner(InInset());
// this is an idea for a more userfriendly layout handling, I will // this is an idea for a more userfriendly layout handling, I will
// see what the users say // see what the users say

View File

@ -1674,6 +1674,7 @@ void LyXText::SetCounter(Buffer const * buf, LyXParagraph * par) const
if (layout.labeltype == LABEL_SENSITIVE) { if (layout.labeltype == LABEL_SENSITIVE) {
bool isOK (par->InInset() && par->InInset()->owner() && bool isOK (par->InInset() && par->InInset()->owner() &&
(par->InInset()->owner()->LyxCode() == Inset::FLOAT_CODE)); (par->InInset()->owner()->LyxCode() == Inset::FLOAT_CODE));
if (isOK) { if (isOK) {
InsetFloat * tmp = static_cast<InsetFloat*>(par->InInset()->owner()); InsetFloat * tmp = static_cast<InsetFloat*>(par->InInset()->owner());
Floating const & fl Floating const & fl