diff --git a/graf2d/graf/src/TMathText.cxx b/graf2d/graf/src/TMathText.cxx index 3d636ebcde231be7897728af8cbdc0a381622632..25dc909f36d98c2155498415b8043662753ef100 100644 --- a/graf2d/graf/src/TMathText.cxx +++ b/graf2d/graf/src/TMathText.cxx @@ -630,7 +630,7 @@ void TMathText::PaintMathText(Double_t x, Double_t y, Double_t angle, if (newText.Length() == 0) return; - // Compatibility with TLatex + // Compatibility with TLatex and Latex newText.ReplaceAll("\\omicron","o"); newText.ReplaceAll("\\Alpha","A"); newText.ReplaceAll("\\Beta","B"); @@ -646,6 +646,7 @@ void TMathText::PaintMathText(Double_t x, Double_t y, Double_t angle, newText.ReplaceAll("\\Tau","T"); newText.ReplaceAll("\\Chi","X"); newText.ReplaceAll("\\varomega","\\varpi"); + newText.ReplaceAll("\\mbox","\\hbox"); if (newText.Contains("\\frac")) { Int_t len,i1,i2; TString str;