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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-07-16 18:16:22 -03:00 committed by Dirk Hohndel
parent a5c9bc1ef2
commit bf7fc97b50

View file

@ -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);
}