aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'textedit.cpp')
-rw-r--r--textedit.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/textedit.cpp b/textedit.cpp
index 49c9b6d..de7f54c 100644
--- a/textedit.cpp
+++ b/textedit.cpp
@@ -518,20 +518,29 @@ void TextEdit::redo()
void TextEdit::zoomIn()
{
- if (tabWidget->count() == 0 || curTextPage() == 0) {
+ if (tabWidget->count() == 0 ) {
return;
}
- curTextPage()->zoomIn();
+ if(curTextPage() != 0) {
+ curTextPage()->zoomIn();
+ } else {
+ curHelpPage()->zoomIn();
+ }
+
}
void TextEdit::zoomOut()
{
- if (tabWidget->count() == 0 || curTextPage() == 0) {
+ if (tabWidget->count() == 0 ) {
return;
}
- curTextPage()->zoomOut();
+ if(curTextPage() != 0) {
+ curTextPage()->zoomOut();
+ } else {
+ curHelpPage()->zoomOut();
+ }
}
void TextEdit::selectAll()