1. Load the attached file buglabel.lyx 2. Move the cursor inside the display math, on the line which reads "TryInsertingLabelHere". 3. Select from menu Insert/Label..., type a label and press ok. The label should be displayed in the math number position, but it is not.
Notes: - Lyx versions 1.1.6fix2 and fix3 tested, both buggy - I didn't try what TeX output looks like... don't now if ok - I'm not subscribed here (but on -users), so cc would be nice--althought the bug is not a problem, workaround is easy
#LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset Formula \begin{eqnarray} \phi _{\textrm{min}}\left( a\right) & = & \left\{ \begin{array}{ll} 0, & a=0\\ ad+1, & a>0 \end{array}\right. \label{cbmemin} \\ \phi _{\textrm{max}}\left( a\right) & = & \left\{ \begin{array}{ll} d-1, & a=0\\ TryInsertingLabelHere & a>0\label{xxx} \end{array}\right. . \end{eqnarray} \end_inset \the_end