+2000-10-28 Juergen Vigna <jug@sad.it>
+
+ * src/insets/insettabular.C (draw): fixed drawing bug.
+
+ * src/insets/insettext.C (clear):
+ (Read):
+ (SetParagraphData): clearing the TEXT buffers when deleting the
+ paragraphs used by it.
+
+ * src/BufferView_pimpl.C (cursorNext): fixed PageDown problem.
+
+ * src/trans.C (AddDeadkey): fixed bug in inizializing keymap array.
+
2000-10-27 Juergen Vigna <jug@sad.it>
* src/tabular.C (~LyXTabular): removed not needed anymore.
if (!text->cursor.row()->next())
return;
- int y = text->first;
+ int y = text->first + workarea_->height();
// if (text->inset_owner)
// y += bv_->text->first;
text->GetRowNearY(y);
+
Row * cursorrow = text->cursor.row();
- text->SetCursorFromCoordinates(bv_, text->cursor.x_fix(), y
- + workarea_->height());
+ text->SetCursorFromCoordinates(bv_, text->cursor.x_fix(), y); // + workarea_->height());
bv_->text->FinishUndo();
// This is to allow jumping over large insets
if ((cursorrow == bv_->text->cursor.row()))
#pragma interface
#endif
+#include <config.h>
#include FORMS_H_LOCATION
#include "LString.h"
tabular->GetAdditionalHeight(cell);
}
}
+ i = tabular->row_of_cell(actcell);
if (the_locking_inset == tabular->GetCellInset(cell)) {
LyXText::text_status st = bv->text->status;
do {
InsetText::~InsetText()
{
+ // delete all instances of LyXText before deleting the paragraps used
+ // by it.
for(Cache::const_iterator cit = cache.begin(); cit != cache.end(); ++cit)
delete (*cit).second;
LyXParagraph * p = par->next;
void InsetText::clear()
{
+ // delete all instances of LyXText before deleting the paragraps used
+ // by it.
+ for(Cache::const_iterator cit = cache.begin(); cit != cache.end(); ++cit)
+ delete (*cit).second;
LyXParagraph * p = par->next;
delete par;
while(p) {
#endif
LyXFont font(LyXFont::ALL_INHERIT);
+ // delete all instances of LyXText before deleting the paragraps used
+ // by it.
+ for(Cache::const_iterator cit = cache.begin(); cit != cache.end(); ++cit)
+ delete (*cit).second;
+
LyXParagraph * p = par->next;
delete par;
while(p) {
void InsetText::SetParagraphData(LyXParagraph *p)
{
- LyXParagraph * np;
+ // delete all instances of LyXText before deleting the paragraps used
+ // by it.
+ for(Cache::const_iterator cit = cache.begin(); cit != cache.end(); ++cit)
+ delete (*cit).second;
+ LyXParagraph * np;
if (par) {
np = par->next;
delete par;
for(string::size_type i = 0; i < keys.length(); ++i) {
string * temp =
&keymap_[static_cast<unsigned char>(keys[i])];
- (*temp)[0] = 0; (*temp)[1] = accent;
+#warning this is not really clean we should find a cleaner way (Jug)
+ *temp = "xx"; /* this is needed for the being sure that the below
+ assignment is not assigned to a nullpointer
+ (if size of string = 0)
+ */
+ (*temp)[0] = 0;
+ (*temp)[1] = accent;
}
kmod_list_[accent]->exception_list = 0;
}