Peter Kümmel wrote:
Peter Kümmel wrote:

Abdelrazak Younes wrote:
Peter Kümmel wrote:
My build with msvc crashes on startup here:

Buffer * BufferView::buffer() const
{
    return pimpl_->buffer_;
}

This is my first build since two weeks, so
is this a known problem?
This is weird... I don't see this with msvc2005. Backtrace?

Abdel.


Seems the problem is not new, see FIXME comment:

No this FIXME is just a hint that there might be multiple WorkAreas for a given BufferView in the future.


in the ctor of GuiWorkArea  setFocus is used which results in the usage of

BufferView & WorkArea::bufferView()
{
        return *buffer_view_;
}

I don't understand how setFocus could result in the usage of bufferView()... And I don't see the crash either...

but no WorkArea has been constructed at this time.

You mean BufferView right?

Anyway... this setFocus is not needed so I will commit the attached cleanup which should hopefully fixes your crash. But this is weird anyway...

Abdel.


Index: GuiWorkArea.C
===================================================================
--- GuiWorkArea.C       (revision 14842)
+++ GuiWorkArea.C       (working copy)
@@ -129,9 +129,6 @@
 
        viewport()->setAutoFillBackground(false);
        viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
-
-       viewport()->setFocusPolicy(Qt::WheelFocus);
-       viewport()->setFocus();
        setFocusPolicy(Qt::WheelFocus);
 
        viewport()->setCursor(Qt::IBeamCursor);

Reply via email to