[Marble-bugs] [marble] [Bug 324550] New: Using two widget in the some time to add the some placemark to both of them

Bagouri wledzne9i at hotmail.com
Thu Sep 5 15:01:15 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=324550

            Bug ID: 324550
           Summary: Using two widget in the some time to add the some
                    placemark to both of them
    Classification: Unclassified
           Product: marble
           Version: unspecified
          Platform: unspecified
               URL: http://codeviewer.org/view/code:3642
                OS: Windows CE
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: wledzne9i at hotmail.com

void MARCS::createRpaMark(double hdg ,double lon, double lat,
GeoDataCoordinates::Unit){

    //Create the placemark representing the Arch of Triumph
    placemarkRPA->setCoordinate( lon, lat, 0, GeoDataCoordinates::Degree );
    createStyleRPA ( styleArchRPA, hdg );
    placemarkRPA->setStyle( styleArchRPA ) ;

    //Create the document and add the two placemarks (the point representing
the Arch of Triumph and the polygon with Bucharest's boundaries)
    if(number==0){
    documentRPA->append( placemarkRPA );
    ui->MarbleWidget_plan->model()->treeModel()->addDocument(documentRPA);
    ui->MarbleWidget_smallView->model()->treeModel()->addDocument(documentRPA);
    }
    else {
    documentRPA->remove(0);
    documentRPA->append( placemarkRPA );
    ui->MarbleWidget_plan->model()->treeModel()->update();
    ui->MarbleWidget_smallView->model()->treeModel()->update();
    }
    number ++ ;
    }



Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list