[gnote] Use text_content from NoteBase when no buffer
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Use text_content from NoteBase when no buffer
- Date: Sat, 11 Jul 2020 16:12:06 +0000 (UTC)
commit e8f2134aba9d7d03a7e6b0529f6079a0a2e96e90
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Jul 11 19:08:45 2020 +0300
Use text_content from NoteBase when no buffer
src/note.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/note.cpp b/src/note.cpp
index 73052d1d..b06990a4 100644
--- a/src/note.cpp
+++ b/src/note.cpp
@@ -669,7 +669,7 @@ namespace gnote {
Glib::ustring Note::text_content()
{
if(!m_buffer) {
- get_buffer();
+ return NoteBase::text_content();
}
return m_buffer->get_slice(m_buffer->begin(), m_buffer->end());
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]