]> git.lyx.org Git - lyx.git/commitdiff
Jean-Marc's patch, BUGS update
authorAndré Pönitz <poenitz@gmx.net>
Fri, 14 Sep 2001 11:03:41 +0000 (11:03 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 14 Sep 2001 11:03:41 +0000 (11:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2759 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/BUGS
src/mathed/ChangeLog
src/mathed/formula.C
src/mathed/support.C

index 1eb42d0ba2d022497307d386d5d72b4c332cd480..88454a72953ef69df108eb752a7135a07c6032c9 100644 (file)
@@ -79,10 +79,10 @@ Misc:
 
 // - If I change '\alpha' to bold, the result is \mathbf{a}
 
-- Just moving the cursor in a math inset causes changing the buffer status
-  to (changed).
+// - Just moving the cursor in a math inset causes changing the buffer status
+//   to (changed).
 
-- disable the insert->label menu item when in inline formula.
+// - disable the insert->label menu item when in inline formula.
 
 
 Eran Tromer:
@@ -211,12 +211,13 @@ From: 
  won't repeat that. Only that the flattening option would be then easier to 
  implement on top of that.
  
-- There's something I keep wondering about.. how do new math symbols get into 
- LyX. Do they get ever?. I don't know if it can be done, but if you tell me 
- where to "draw" those symbols or how, I would very glad start doing it. LyX 
- deserves to have support (visual support) for all the AMSTeX constructs. But 
- there must be something structural going on there, because otherwise more 
- math symbols would be ready by now.. just a thought.
+// - There's something I keep wondering about.. how do new math symbols get
+// into LyX. Do they get ever?. I don't know if it can be done, but if you
+// tell me where to "draw" those symbols or how, I would very glad start
+// doing it. LyX deserves to have support (visual support) for all the
+// AMSTeX constructs. But there must be something structural going on
+// there, because otherwise more math symbols would be ready by now..
+// just a thought.
  
 - Some math symbols aren't very well supported (to my knowledge). I'm 
   thinking of underbraces with extra data in them,or [] options.
index 6e8f8a3688d5977f26685d7f36b8110306404a37..636d3198809038fa1ef08f3db6ec89506274e8d6 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * formula.C (insetAllowed): disallow label insertion in inline
+       formula
+
 2001-09-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * formulabase.C (mathDispatchCreation): pass second argument
index b2ef1189caf7a0f6545f0381932d1a1730c8ae8d..d6c7bb40c6b9ef41ae34637865ba100f6916e070 100644 (file)
@@ -356,7 +356,7 @@ void InsetFormula::validate(LaTeXFeatures & features) const
 
 bool InsetFormula::insetAllowed(Inset::Code code) const
 {
-       return code == Inset::LABEL_CODE; 
+       return code == Inset::LABEL_CODE && display()
 }
 
 
index d1fba3094a8dc07d9ffe695c56dce6869d82e708..bc1264ea82e807b88690012744d0ecd68dabc20c 100644 (file)
@@ -550,10 +550,8 @@ int mathed_char_descent(MathTextCodes type, MathStyles size, unsigned char c)
 int mathed_char_width(MathTextCodes type, MathStyles size, unsigned char c)
 {
        LyXFont const font = whichFont(type, size);
-       LyXFont const f1 = whichFont(LM_TC_TEXTRM, size);
-#warning why f1 is used ?
        if (isBinaryOp(c, type))
-               return lyxfont::width(c, font) + 2 * lyxfont::width(' ', f1);
+               return lyxfont::width(c, font) + 2 * lyxfont::width(' ', font);
        else
                return lyxfont::width(c, font);
 }