mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fixed a bug in InsetFormula drawing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1334 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f00333cfb5
commit
2b5b916b0f
@ -0,0 +1,4 @@
|
||||
2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* math_draw.C (Metrics): Use the correct GetString.
|
||||
|
@ -142,7 +142,6 @@ MathParInset::Metrics()
|
||||
{
|
||||
byte cx;
|
||||
byte cxp = 0;
|
||||
string s;
|
||||
int ls;
|
||||
int asc = df_asc;
|
||||
int des = 0;
|
||||
@ -163,7 +162,7 @@ MathParInset::Metrics()
|
||||
while (data.OK()) {
|
||||
cx = data.GetChar();
|
||||
if (cx >= ' ') {
|
||||
s = reinterpret_cast<char *>(data.GetString(ls));
|
||||
string s = data.GetString();
|
||||
mathed_string_height(data.FCode(), size, s, asc, des);
|
||||
if (asc > ascent) ascent = asc;
|
||||
if (des > descent) descent = des;
|
||||
|
Loading…
Reference in New Issue
Block a user