mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
Fix float label prefix (bug #8536)
This commit is contained in:
parent
9dbbe6a372
commit
f9691aed8d
@ -1948,7 +1948,7 @@ docstring Text::getPossibleLabel(Cursor const & cur) const
|
|||||||
// For captions, we just take the caption type
|
// For captions, we just take the caption type
|
||||||
Inset * caption_inset = cur.innerInsetOfType(CAPTION_CODE);
|
Inset * caption_inset = cur.innerInsetOfType(CAPTION_CODE);
|
||||||
if (caption_inset) {
|
if (caption_inset) {
|
||||||
string const & ftype = static_cast<InsetCaption *>(caption_inset)->type();
|
string const & ftype = static_cast<InsetCaption *>(caption_inset)->floattype();
|
||||||
FloatList const & fl = cur.buffer()->params().documentClass().floats();
|
FloatList const & fl = cur.buffer()->params().documentClass().floats();
|
||||||
if (fl.typeExist(ftype)) {
|
if (fl.typeExist(ftype)) {
|
||||||
Floating const & flt = fl.getType(ftype);
|
Floating const & flt = fl.getType(ftype);
|
||||||
|
@ -25,6 +25,8 @@ public:
|
|||||||
///
|
///
|
||||||
std::string const & type() const { return type_; }
|
std::string const & type() const { return type_; }
|
||||||
///
|
///
|
||||||
|
std::string const & floattype() const { return floattype_; }
|
||||||
|
///
|
||||||
docstring layoutName() const;
|
docstring layoutName() const;
|
||||||
/// return the mandatory argument (LaTeX format) only
|
/// return the mandatory argument (LaTeX format) only
|
||||||
void getArgument(otexstream & os, OutputParams const &) const;
|
void getArgument(otexstream & os, OutputParams const &) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user