On Wednesday 20 of June 2012, Miklos Vajna wrote:
>  sw/source/core/doc/docfly.cxx |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> New commits:
> commit 017a82c50c338a4304ca0b945ed04c7d2d62f1d5
> Author: Miklos Vajna <[email protected]>
> Date:   Wed Jun 20 13:24:17 2012 +0200
>
>     SwDoc::SetFlyFrmAnchor: fix crash when SwTxtNode has no hints
>
>     Change-Id: I5178ff1bbf1a3e8eebec10f44e74d9d0806d3168
>
> diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx
> index e867da1..388f11d 100644
> --- a/sw/source/core/doc/docfly.cxx
> +++ b/sw/source/core/doc/docfly.cxx
> @@ -261,7 +261,8 @@ sal_Int8 SwDoc::SetFlyFrmAnchor( SwFrmFmt& rFmt,
> SfxItemSet& rSet, sal_Bool bNew "Missing FlyInCnt-Hint." );
>          OSL_ENSURE( pHnt && pHnt->GetFlyCnt().GetFrmFmt() == &rFmt,
>                      "Wrong TxtFlyCnt-Hint." );
> -        const_cast<SwFmtFlyCnt&>(pHnt->GetFlyCnt()).SetFlyFmt();
> +        if (pHnt)
> +            const_cast<SwFmtFlyCnt&>(pHnt->GetFlyCnt()).SetFlyFmt();

 I think this is a sign of internal inconsistency. I had a similar problem 
leading to 5de61f7a4ddb502730454e4bf3232f7f4b4175e1 .

-- 
 Lubos Lunak
 [email protected]
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to