[Qgis-developer] Re: Display raster fails
Radim Blazek
radim.blazek at gmail.com
Fri Mar 24 05:51:51 EST 2006
On 3/24/06, Marco Hugentobler <marco.hugentobler at autoform.ch> wrote:
> Hi Radim,
>
> This fails because of a recent change (i think of morb_au).
> To fix it right now, go to
> QgisApp::activateDeactivateLayerRelatedActions near the bottom and add a
> test for null pointer of the raster provider.
Sorry for CC, I had seen QgsLegend..., I have also found that it is
probably caused by http://svn.qgis.org/trac/changeset/5080
I dont understand how can this:
else if(layer->type() == QgsMapLayer::RASTER) {
const QgsRasterLayer* vlayer = dynamic_cast<const QgsRasterLayer*> (layer);
result in null vlayer.
Radim
> Marco
>
>
> Radim Blazek wrote:
>
> >Fresh SVN version crashes if a raster is opened.
> >
> >Last debug:
> >
> >QgsMapCanvas::drawContents
> >QgsMapCanvas::render: canvas is frozen
> >panning: extent to widget: [12,0] [42x36]
> >QgsMapCanvasItem::updatePosition: <AUTO> [11,0]-[268x245]
> >/ssi0/ssi/blazek/bin/myqgis-head: line 6: 8774 Segmentation fault
> > (core dumped)
> >
> >Back trace:
> >
> >#0 QgisApp::activateDeactivateLayerRelatedActions (this=0x5c37c0,
> >layer=Variable "layer" is not available.
> >)
> > at qgisapp.cpp:4961
> >#1 0x0000002a9569e4b1 in QgsLegend::handleCurrentItemChanged (
> > this=0x6a9590, current=Variable "current" is not available.
> >) at qgslegend.cpp:95
> >#2 0x0000002a956aeeee in QgsLegend::qt_metacall (this=0x6a9590,
> > _c=QMetaObject::InvokeMetaMethod, _id=-5, _a=0x7fbfffc4a0)
> > at qgslegend.moc.cpp:112
> >#3 0x0000002a984f65e2 in QMetaObject::activate ()
> >
> >Radim
> >
> >
> >
>
>
More information about the Qgis-developer
mailing list