Re: Fwd: Crash when pasting Unicode text from Firefox [patch]

Simon Larochelle <[email protected]>
Newsgroups gmane.editors.abiword.devel
Message-ID <CAF8-HjG9T0tg4BozSD8U3e-Kqhgr1_1mSBwYOxuaJ+3m4Xf0Ug@mail.gmail.com>
The bug during "Paste Unformatted" is caused by the following code in
xap_UnixFrameImpl.cpp
(lines 1230-1232):

#if GTK_CHECK_VERSION(3,0,0)
		static_cast<GR_CairoGraphics *>(pGr)->setCairo(cr);
#endif

I think that cr is a cairo object created and destroyed inside a
gdklib function. Thus the cairo surface associated to pGr (m_cr)
should not be set to the value of the cr pointer.

Jean, can you take a look at this?

Simon


On Thu, Aug 16, 2012 at 9:32 AM, Dmitry Smirnov <[email protected]> wrote:
>
> On Thu, 16 Aug 2012 20:36:37 Ingo Brückl wrote:
>> Please see the proposed patch in ticket #13280 and report back.
>
> Tried 2.9.3 and latest trunk:
>   'Paste' is fixed but 'Paste Unformatted' still crashes.
>
>
> Regards,
> Dmitry.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.