[Marble-bugs] [marble] [Bug 360918] New: There are no line breaks in the placemark description

strag via KDE Bugzilla bugzilla_noreply at kde.org
Wed Mar 23 20:36:29 UTC 2016


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

            Bug ID: 360918
           Summary: There are no line breaks in the placemark description
           Product: marble
           Version: unspecified
          Platform: openSUSE RPMs
               URL: https://forum.kde.org/viewtopic.php?f=217&t=131357
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: strag1505 at mail.ru

I add new GeoDataPlacemark to the map and do "setDescription(text)", where text
contains line breaks, but placemark description displays without line breaks.

Reproducible: Always

Steps to Reproduce:
1. Create Qt application and add marble-widget to the form:
    MarbleWidget w = new MarbleWidget;
2. Add new GeoDataDocument:
    doc = new GeoDataDocument;
    w->model()->treeModel()->addDocument(doc);
3. Add new GeoDataPlacemark:
   GeoDataPlacemark *place = new GeoDataPlacemark;
   place->setCoordinate(l, b, 0, GeoDataCoordinates::Radian); // l, b -
coordinates of the place
4. Create text - description of the place:
    QString text = "string 1, \n";
    text += "string 2, \n";
    text += "string 3";
5. Set description of the place and add place to the document:
    place->setDescription(text);
    w->document()->append(place);
6. Launch application and click on the place.

Actual Results:  
"Short Description" contains: 
"string 1, string 2, string 3"

Expected Results:  
"Short Description" contains: 
"string 1, 
 string 2, 
 string 3"

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


More information about the Marble-bugs mailing list