mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									a5c9bc1ef2
								
							
						
					
					
						commit
						bf7fc97b50
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue