<br><font size=2 face="sans-serif">Freundliche Grüße aus Leipzig<br>
Susann Schmidt<br>
Softwareentwicklung <br>
<br>
**************************************************************<br>
<br>
GFI - Gesellschaft für Informationstechnologie mbH<br>
Philipp-Rosenthal-Straße 9<br>
D-04103 Leipzig<br>
Geschäftsführer: Andreas Richter<br>
Amtsgericht Leipzig HRB 12054<br>
USt.-IdNr.: DE179049354     Steuer-Nr.: 231/109/06412<br>
ESRI Solution Partner      und       ER Mapper
Reseller<br>
Tel. 0341 961 3310    Fax 0341 961 3311   Mail info@gfi-gis.de<br>
Web  www.gfi-gis.de  und  www.themenbrowser.de<br>
</font>
<br><font size=1 color=#800080 face="sans-serif">----- Forwarded by Susann
Schmidt/gfi on 12.12.2013 08:39 -----</font>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Susann Schmidt/gfi</b></font>
<p><font size=1 face="sans-serif">12.12.2013 08:27</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">mmekuria <sailmcm@yahoo.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Qgis-developer] some trouble with
pointers in my c++-plugin</font><a href=Notes://mars/C1257861003B28F0/DABA975B9FB113EB852564B5001283EA/42E1D2FC77839E73C1257C3E00289659>Verknüpfung</a></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br><font size=2>Thank you for your reply,</font>
<br><font size=2>i tried this but in the first case QGis crashes on refreshing.
What do I wrong? It seems to be so easy...</font>
<br>
<br><font size=2>             
  QgsPoint pt;</font>
<br><font size=2>             
  </font><font size=2 color=blue>double</font><font size=2>
myX=440000.0;</font><font size=2 color=#008000>//(*adress->X);</font>
<br><font size=2>             
  </font><font size=2 color=blue>double</font><font size=2>
myY=570000.0;</font><font size=2 color=#008000>//(*adress->Y);</font>
<br><font size=2>             
  </font><font size=2 color=blue>if</font><font size=2> (adress->geom==0)</font>
<br><font size=2>             
  {</font>
<br><font size=2>             
          </font><font size=2 color=#008000>//pt=QgsPoint(myX,myY);</font>
<br><font size=2>             
          pt=QgsPoint(440000.0,570000.0);</font>
<br><font size=2>             
          qDebug()<<</font><font size=2 color=#a11f12>"Geom
is null"</font><font size=2><<</font><font size=2 color=#a11f12>"X="</font><font size=2><<QString::number(pt.x())<<</font><font size=2 color=#a11f12>"Y="</font><font size=2><<QString::number(pt.y());</font>
<br><font size=2>             
  }</font>
<br><font size=2>             
  </font><font size=2 color=blue>else</font>
<br><font size=2>             
  {</font>
<br><font size=2>             
          pt = adress->geom->asPoint();</font>
<br><font size=2>             
          qDebug()<<</font><font size=2 color=#a11f12>"Geom
is valid"</font><font size=2><<</font><font size=2 color=#a11f12>"X="</font><font size=2><<QString::number(pt.x())<<</font><font size=2 color=#a11f12>"Y="</font><font size=2><<QString::number(pt.y());</font>
<br><font size=2>             
  }</font>
<br><font size=2>             
  QgsRectangle extent( pt.x() - 50.0,  pt.y() - 50.0,
pt.x() + 50.0,  pt.y() + 50.0);</font>
<br><font size=2>             
  mQGisIface->mapCanvas()->setExtent(extent);</font>
<br><font size=2>             
  mQGisIface->mapCanvas()->refresh();</font>
<br>
<br>
<br><font size=2 face="sans-serif">Freundliche Grüße aus Leipzig<br>
Susann Schmidt<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>mmekuria <sailmcm@yahoo.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: qgis-developer-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">11.12.2013 08:23</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">qgis-developer@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Qgis-developer] some trouble with
pointers in my c++-plugin</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>I think you need to use a reference instead of a pointer
as the argument.<br>
<br>
<br>
<br>
<br>
-----<br>
Maaza Christos, PhD<br>
www.Axumcorp.com<br>
<br>
--<br>
View this message in context: http://osgeo-org.1560.x6.nabble.com/some-trouble-with-pointers-in-my-c-plugin-tp5093507p5093700.html<br>
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
Qgis-developer@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/qgis-developer<br>
<br>
<br>
</font></tt>
<br>