+2000-12-07 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * src/lyxparagraph.h, src/paragraph.C (CopyIntoMinibuffer): pass a
+ (Buffer const &), not a (BufferParams const &) and so fix a crash
+ caused by using current_view before it had been initialised. Not
+ the best way to do this, but much easier than changing
+ Inset::Clone(Buffer const &) to Inset::Clone().
+
+ * src/CutAndPaste.C:
+ * src/tabular.C: changed call to CopyIntoMinibuffer().
+
2000-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lib/ui/default.ui: put TOC at the beginning of the TOC menu.
2000-12-06 Angus Leeming <a.leeming@ic.ac.uk>
- * src/frontends/xforms/FormPreferences.C (ScreenFonts::build): changed
- filter for screen fonts input filter from int to float
+ * src/frontends/xforms/FormPreferences.C (ScreenFonts::build):
+ changed filter for screen fonts input filter from int to float
* src/frontends/xforms/input_validators.c: removed.
* src/frontends/xforms/input_validators.C: new file. Can now call C++
* src/frontends/xforms/input_validators.[Ch]
(fl_unsigned_float_filter): new filter function.
- * src/frontends/xforms/forms/fdfixc.sed: I defy gettext to get confused
- now! And if you think I'm going to do this in ./forms/fdfix.sh with
- its "sed -e" declarations, then think again!
+ * src/frontends/xforms/forms/fdfixc.sed: I defy gettext to get
+ confused now! And if you think I'm going to do this in
+ ./forms/fdfix.sh with its "sed -e" declarations, then think again!
2000-12-06 Lars Gullik Bjønnes <larsbj@lyx.org>
if (end > startpar->Last())
end = startpar->Last();
for (; i < end; ++i) {
- startpar->CopyIntoMinibuffer(current_view->buffer()->params,
- start);
+ startpar->CopyIntoMinibuffer(*current_view->buffer(), start);
startpar->Erase(start);
buf->InsertFromMinibuffer(buf->Last());
if (end > startpar->Last())
end = startpar->Last();
for (; i < end; ++i) {
- startpar->CopyIntoMinibuffer(current_view->buffer()->params, i);
+ startpar->CopyIntoMinibuffer(*current_view->buffer(), i);
buf->InsertFromMinibuffer(buf->Last());
}
} else {
///
void CloseFootnote(size_type pos);
#endif
- /// important for cut and paste
- void CopyIntoMinibuffer(BufferParams const &, size_type pos) const;
+ /** important for cut and paste
+ Temporary change from BufferParams to Buffer. Will revert when we
+ get rid of the argument to Inset::Clone(Buffer const &) */
+ void CopyIntoMinibuffer(Buffer const &, size_type pos) const;
///
void CutIntoMinibuffer(BufferParams const &, size_type pos);
///
// First few functions needed for cut and paste and paragraph breaking.
-void LyXParagraph::CopyIntoMinibuffer(BufferParams const & bparams,
+void LyXParagraph::CopyIntoMinibuffer(Buffer const & buffer,
LyXParagraph::size_type pos) const
{
+ BufferParams bparams = buffer.params;
+
minibuffer_char = GetChar(pos);
minibuffer_font = GetFontSettings(bparams, pos);
minibuffer_inset = 0;
if (minibuffer_char == LyXParagraph::META_INSET) {
if (GetInset(pos)) {
- minibuffer_inset = GetInset(pos)->Clone(*current_view->buffer());
+ minibuffer_inset = GetInset(pos)->Clone(buffer);
} else {
minibuffer_inset = 0;
minibuffer_char = ' ';
par->InsertChar(i, ' ');
}
}
- par->CopyIntoMinibuffer(owner_->BufferOwner()->params, i);
+ par->CopyIntoMinibuffer(*owner_->BufferOwner(), i);
inset->par->InsertFromMinibuffer(inset->par->Last());
}
delete par;