fix formatting

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16340 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-12-19 18:04:42 +00:00
parent 71ed7ab328
commit 0d089d48ca

View File

@ -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;