Re: [Cvslog] r21392 - in /lyx-devel/trunk/src: Text3.cpp insets/Inset....

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Cvslog] r21392 - in /lyx-devel/trunk/src: Text3.cpp insets/Inset....

Andre Poenitz-3
On Fri, Nov 02, 2007 at 09:27:41PM -0000, [hidden email] wrote:

> Author: younes
> Date: Fri Nov  2 22:27:41 2007
> New Revision: 21392
>
> URL: http://www.lyx.org/trac/changeset/21392
> Log:
> Further cleanup of collapsable insets. The layouts are now properly read and applied.
>
>
> Modified:
>     lyx-devel/trunk/src/Text3.cpp
>     lyx-devel/trunk/src/insets/Inset.h
>     lyx-devel/trunk/src/insets/InsetBox.cpp
>     lyx-devel/trunk/src/insets/InsetCollapsable.cpp
>     lyx-devel/trunk/src/insets/InsetCollapsable.h
>
> Modified: lyx-devel/trunk/src/Text3.cpp
> URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/Text3.cpp?rev=21392
> ==============================================================================
> --- lyx-devel/trunk/src/Text3.cpp (original)
> +++ lyx-devel/trunk/src/Text3.cpp Fri Nov  2 22:27:41 2007
> @@ -189,6 +189,9 @@
>   Inset * inset = createInset(&cur.bv(), cmd);
>   if (!inset)
>   return false;
> +
> + if (InsetCollapsable * ci = inset->asInsetCollapsable())
> + ci->setLayout(cur.bv().buffer().params());

I once more think that insets should have a pointer to their buffer.

Andre'
Loading...