On Tue, Dec 04, 2001 at 11:07:36PM +0100, Michael Schmitt wrote:

> >>- When adding a label to a figure float, LyX offers, e.g., "sub:<previous 
> >>subsection>". In 99%
> >> of all cases, a section name is not useful inside a float
> >
> >so it should just be blank ?
> 
> Either blank - or it proposes the content of the caption (might be a 
> little bit too advanced?).

it is our old friend, a bv->text misuse. Please apply attached.

thanks
john

Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.443
diff -u -r1.443 ChangeLog
--- src/ChangeLog       2001/12/05 23:21:26     1.443
+++ src/ChangeLog       2001/12/06 01:01:02
@@ -1,3 +1,7 @@
+2001-12-06  John Levon  <[EMAIL PROTECTED]>
+
+       * lyx_cb.C: another bv->text misuse, from insert label
+ 
 2001-12-05  John Levon  <[EMAIL PROTECTED]>
 
        * lyxtext.h:
Index: src/lyx_cb.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyx_cb.C,v
retrieving revision 1.162
diff -u -r1.162 lyx_cb.C
--- src/lyx_cb.C        2001/11/26 10:19:49     1.162
+++ src/lyx_cb.C        2001/12/06 01:01:03
@@ -476,7 +477,7 @@
        string label(arg);
        bv->owner()->prohibitInput();
        if (label.empty()) {
-               Paragraph * par = bv->text->cursor.par();
+               Paragraph * par = bv->getLyXText()->cursor.par();
                LyXLayout const * layout =
                        &textclasslist.Style(bv->buffer()->params.textclass,
                                             par->getLayout());

Reply via email to