From bf7fc97b50374a7b317d4d942dda2ff4e135f422 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 16 Jul 2014 18:16:22 -0300 Subject: [PATCH] Fix saving and storing the dive plan notes when there's html on it We save an HTML table-based plan, so we need to get the text as html, not plaintext. Fixes #634 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index d94b37d07..439e114df 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -1002,7 +1002,7 @@ void MainTab::on_notes_textChanged() if (editMode == IGNORE) return; free(displayed_dive.notes); - displayed_dive.notes = strdup(ui.notes->toPlainText().toUtf8().data()); + displayed_dive.notes = strdup(ui.notes->toHtml().toUtf8().data()); markChangedWidget(ui.notes); }