On Sat, Sep 13, 2008 at 05:21:27PM +0200, Abdelrazak Younes wrote:
> Vincent van Ravesteijn - TNW wrote:
>>
>>
>>> Vincent van Ravesteijn - TNW wrote:
>>>
In the following piece of code, the tmpInset was deleted if
insetAllowed was false. After the change, tmpInset is deleted wh
Vincent van Ravesteijn - TNW wrote:
Vincent van Ravesteijn - TNW wrote:
In the following piece of code, the tmpInset was deleted if
insetAllowed was false. After the change, tmpInset is deleted when
insetAllowed is true.
This leads to disappearing Insets and crashes. I'd suggest add
>Vincent van Ravesteijn - TNW wrote:
>> In the following piece of code, the tmpInset was deleted if
>> insetAllowed was false. After the change, tmpInset is deleted when
>> insetAllowed is true.
>>
>> This leads to disappearing Insets and crashes. I'd suggest adding a
!.
>>
>
>Oups, sorry.
Vincent van Ravesteijn - TNW wrote:
In the following piece of code, the tmpInset was deleted if insetAllowed
was false. After the change, tmpInset is deleted when insetAllowed is
true.
- if (!toPar.insetAllowed(tmpInset->lyxCode())) {
+ Inset * inset = toPar.inInset();
+ if (inset&& inset->