mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
fix inInset crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9609 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
72dccb8869
commit
b7665042ff
@ -1,3 +1,7 @@
|
||||
2005-02-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* text2.C (setCounter): check for inInset() == 0
|
||||
|
||||
2005-02-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* BufferView_pimpl.C (dispatch): handle LFUN_GOTO_PARAGRAPH here,
|
||||
|
@ -791,8 +791,9 @@ void LyXText::setCounter(Buffer const & buf, pit_type pit)
|
||||
bool isOK = false;
|
||||
while (tmppit != end) {
|
||||
in = pars_[tmppit].inInset();
|
||||
if (in->lyxCode() == InsetBase::FLOAT_CODE ||
|
||||
in->lyxCode() == InsetBase::WRAP_CODE) {
|
||||
if (in &&
|
||||
(in->lyxCode() == InsetBase::FLOAT_CODE ||
|
||||
in->lyxCode() == InsetBase::WRAP_CODE)) {
|
||||
isOK = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user