docstring InsetWrap::toolTip(BufferView const & bv, int x, int y) const
{
+ if (isOpen(bv))
+ return InsetCollapsable::toolTip(bv, x, y);
OutputParams rp(&buffer().params().encoding());
- docstring default_tip = InsetCollapsable::toolTip(bv, x, y);
docstring caption_tip = getCaptionText(rp);
- if (!isOpen(bv) && !caption_tip.empty())
- return caption_tip + '\n' + default_tip;
- return default_tip;
+ if (!caption_tip.empty())
+ caption_tip += from_ascii("\n");
+ return toolTipText(caption_tip);
}
{
switch (cmd.action()) {
case LFUN_INSET_MODIFY: {
+ cur.recordUndoInset(ATOMIC_UNDO, this);
InsetWrapParams params;
InsetWrap::string2params(to_utf8(cmd.argument()), params);
params_.lines = params.lines;
}
-int InsetWrap::latex(odocstream & os, OutputParams const & runparams_in) const
+int InsetWrap::latex(otexstream & os, OutputParams const & runparams_in) const
{
OutputParams runparams(runparams_in);
runparams.inFloat = OutputParams::MAINFLOAT;