Fix crash when a user removes a formula when its preview is being generated. (Another signal/destructor/gcc3 bug)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19666 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-08-20 21:25:14 +00:00
parent 0767069003
commit b6fb32535a
3 changed files with 11 additions and 0 deletions

View File

@ -62,6 +62,13 @@ RenderPreview::RenderPreview(RenderPreview const & other,
{} {}
RenderPreview::~RenderPreview()
{
if (ploader_connection_.connected())
ploader_connection_.disconnect();
}
auto_ptr<RenderBase> RenderPreview::clone(Inset const * inset) const auto_ptr<RenderBase> RenderPreview::clone(Inset const * inset) const
{ {
return auto_ptr<RenderBase>(new RenderPreview(*this, inset)); return auto_ptr<RenderBase>(new RenderPreview(*this, inset));

View File

@ -49,6 +49,7 @@ public:
RenderPreview(Inset const *); RenderPreview(Inset const *);
RenderPreview(RenderPreview const &, Inset const *); RenderPreview(RenderPreview const &, Inset const *);
~RenderPreview();
std::auto_ptr<RenderBase> clone(Inset const *) const; std::auto_ptr<RenderBase> clone(Inset const *) const;
/// Compute the size of the object, returned in dim /// Compute the size of the object, returned in dim

View File

@ -70,6 +70,9 @@ What's new
- Fix crash when a user removes the underlying figure of a graphic inset - Fix crash when a user removes the underlying figure of a graphic inset
that has been copied and pasted (Bug 4108). that has been copied and pasted (Bug 4108).
- Fix crash when a user removes a formula when its preview is being generated.
(gcc 3 only).
* DOCUMENTATION * DOCUMENTATION
- Embedded Objects manual: section about longtable alignment added - Embedded Objects manual: section about longtable alignment added