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:
Dekel Tsur 2001-01-15 12:47:54 +00:00
parent f00333cfb5
commit 2b5b916b0f
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,4 @@
2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
* math_draw.C (Metrics): Use the correct GetString.

View File

@ -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;