setAutoBreakRows(true);
setDrawFrame(true);
setFrameColor(Color_collapsableframe);
- paragraphs().back().setLayout(dc.emptyLayout());
+ paragraphs().back().setLayout(dc.plainLayout());
}
layout_ = &(dc->insetLayout(name()));
labelstring_ = translateIfPossible(layout_->labelstring());
} else {
- layout_ = &DocumentClass::emptyInsetLayout();
+ layout_ = &DocumentClass::plainInsetLayout();
labelstring_ = _("UNDEFINED");
}
break;
}
os << "\n";
- text_.write(buffer(), os);
+ text().write(buffer(), os);
}
break;
case LFUN_MOUSE_RELEASE:
- if (geometry() == NoButton || !hitButton(cmd)) {
+ if (geometry() == NoButton
+ || (geometry() != ButtonOnly && !hitButton(cmd))) {
// The mouse click has to be within the inset!
InsetText::doDispatch(cur, cmd);
break;
bool InsetCollapsable::undefined() const
{
docstring const & n = getLayout().name();
- return n.empty() || n == DocumentClass::emptyInsetLayout().name();
+ return n.empty() || n == DocumentClass::plainInsetLayout().name();
}