mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 08:44:01 +00:00
fix symbol font in math, nuke leak in undo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@3204 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
892ed51a21
commit
2c3005d3de
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
||||
2001-12-12 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* src/FontLoader.C (getFontinfo): only use symbol fonts with encoding
|
||||
-adobe-fontspecific. At least Mandrake and Redhat have a symbol
|
||||
font in urw-fonts package which is marked as -urw-fontspecific and
|
||||
does not work (incidentally, changing the encoding in the
|
||||
fonts.dir of this package to -adobe-fontspecific fixes the
|
||||
problem).
|
||||
|
||||
* src/text2.C (TextHandleUndo): fix memory leak where undo
|
||||
information was never released.
|
||||
|
||||
2001-11-30 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* lib/examples/de_splash.lyx: update from Hartmut Haase.
|
||||
|
@ -101,7 +101,7 @@ void FontLoader::getFontinfo(LyXFont::FONT_FAMILY family,
|
||||
|
||||
// Special code for the symbol family
|
||||
if (family == LyXFont::SYMBOL_FAMILY){
|
||||
fontinfo[family][series][shape] = new FontInfo("-*-symbol-*");
|
||||
fontinfo[family][series][shape] = new FontInfo("-*-symbol-*-adobe-fontspecific");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -3343,13 +3343,15 @@ bool LyXText::TextHandleUndo(BufferView * bview, Undo * undo)
|
||||
while (tmppar5 && tmppar5 != behind){
|
||||
tmppar = tmppar5;
|
||||
tmppar5 = tmppar5->next;
|
||||
// a memory optimization for edit: Only layout information
|
||||
// is stored in the undo. So restore the text informations.
|
||||
// a memory optimization for edit:
|
||||
// Only layout information is stored
|
||||
// in the undo. So restore the text
|
||||
// informations.
|
||||
if (undo->kind == Undo::EDIT) {
|
||||
tmppar2->setContentsFromPar(tmppar);
|
||||
tmppar->clearContents();
|
||||
tmppar2 = tmppar2->next;
|
||||
}
|
||||
delete tmppar;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user