]> git.lyx.org Git - lyx.git/commitdiff
Make the height of a formula at least the height of an 'I'
authorAndré Pönitz <poenitz@gmx.net>
Mon, 3 Sep 2001 08:55:56 +0000 (08:55 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 3 Sep 2001 08:55:56 +0000 (08:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2660 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/xarray.C

index 58d1b77a8c6059b3773e0180825fcce061bf65f9..5fff5bb75ad091cc258cbcb144fcd235b06cc902 100644 (file)
@@ -22,15 +22,13 @@ MathXArray::MathXArray()
 
 void MathXArray::metrics(MathStyles st) const
 {
-       if (data_.empty()) {
-               mathed_char_dim(LM_TC_VAR, st, 'I', ascent_, descent_, width_); 
+       style_   = st;
+       mathed_char_dim(LM_TC_VAR, st, 'I', ascent_, descent_, width_);
+
+       if (data_.empty()) 
                return;
-       }
        
-       ascent_  = 0;
-       descent_ = 0;
        width_   = 0;
-       style_   = st;
 
        //lyxerr << "MathXArray::metrics(): '" << data_ << "'\n";
        for (int pos = 0; pos < data_.size(); ++pos) {