[Qgis-developer] Re: Display raster fails
Luca Casagrande
luca.casagrande at gmail.com
Fri Mar 24 10:06:49 EST 2006
Hi guys!
I am currently working with latest SVN , but after the today sync ( i know
that it's not a good way of work using the unstable edition, but bug-testing
had to be done) i can't display raster anymore...
How can I use the previus SVN?
Thx
Luca
Alle 10:51, venerdì 24 marzo 2006, Radim Blazek ha scritto:
> 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
--
"E' molto più bello sapere qualcosa di tutto, che tutto di una cosa (Blaise
Pascal)."
GENTOO-GIS Development Team
jabber: casagrande at jabber.linux.it
More information about the Qgis-developer
mailing list