[qet] qet/qet: [5859] Minor fix : Advanced replace of independent text doesn' t work. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5859
Author: blacksun
Date: 2019-05-09 21:36:51 +0200 (Thu, 09 May 2019)
Log Message:
-----------
Minor fix : Advanced replace of independent text doesn't work.
Modified Paths:
--------------
trunk/sources/diagramcommands.cpp
Modified: trunk/sources/diagramcommands.cpp
===================================================================
--- trunk/sources/diagramcommands.cpp 2019-05-09 10:50:09 UTC (rev 5858)
+++ trunk/sources/diagramcommands.cpp 2019-05-09 19:36:51 UTC (rev 5859)
@@ -409,14 +409,13 @@
text_item -> setHtml(text_before);
}
-/// refait la modification de texte
-void ChangeDiagramTextCommand::redo() {
+/**
+ * @brief ChangeDiagramTextCommand::redo
+ */
+void ChangeDiagramTextCommand::redo()
+{
diagram -> showMe();
- if (first_redo) {
- first_redo = false;
- } else {
- text_item -> setHtml(text_after);
- }
+ text_item->setHtml(text_after);
}
/**