mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
fix formatting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16340 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
71ed7ab328
commit
0d089d48ca
@ -96,15 +96,15 @@ void InsetCaption::setLabel(LCursor & cur) const
|
||||
if (cur.top().text() == &text_) {
|
||||
string s;
|
||||
size_t i = cur.depth();
|
||||
while (i > 0) {
|
||||
--i;
|
||||
InsetBase * const in = &cur[i].inset();
|
||||
if (in->lyxCode() == InsetBase::FLOAT_CODE
|
||||
|| in->lyxCode() == InsetBase::WRAP_CODE) {
|
||||
s = to_utf8(in->getInsetName());
|
||||
break;
|
||||
}
|
||||
while (i > 0) {
|
||||
--i;
|
||||
InsetBase * const in = &cur[i].inset();
|
||||
if (in->lyxCode() == InsetBase::FLOAT_CODE ||
|
||||
in->lyxCode() == InsetBase::WRAP_CODE) {
|
||||
s = to_utf8(in->getInsetName());
|
||||
break;
|
||||
}
|
||||
}
|
||||
Floating const & fl = textclass_.floats().getType(s);
|
||||
s = fl.name();
|
||||
docstring num;
|
||||
|
Loading…
Reference in New Issue
Block a user