mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Simplify, and delete unused routine.
This commit is contained in:
parent
c37cacaffb
commit
bcf86b8477
@ -199,9 +199,7 @@ void InsetCaption::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
switch (cmd.action()) {
|
||||
|
||||
case LFUN_INSET_MODIFY: {
|
||||
string const first_arg = cmd.getArg(0);
|
||||
bool const change_type = first_arg == "changetype";
|
||||
if (change_type) {
|
||||
if (cmd.getArg(0) == "changetype") {
|
||||
cur.recordUndoInset(ATOMIC_UNDO, this);
|
||||
type_ = cmd.getArg(1);
|
||||
cur.forceBufferUpdate();
|
||||
|
@ -23,8 +23,6 @@ public:
|
||||
///
|
||||
InsetCaption(Buffer *, std::string const &);
|
||||
///
|
||||
std::string const & type() const { return type_; }
|
||||
///
|
||||
std::string const & floattype() const { return floattype_; }
|
||||
///
|
||||
docstring layoutName() const;
|
||||
|
Loading…
Reference in New Issue
Block a user