From ab6feb1758f368722724457cd8a3c3f4507b3654 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 19 Oct 2022 10:37:30 +0800 Subject: [PATCH] minor fix --- RedPandaIDE/project.cpp | 1 + libs/qsynedit/qsynedit/SynEdit.h | 3 +-- libs/qsynedit/qsynedit/TextPainter.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RedPandaIDE/project.cpp b/RedPandaIDE/project.cpp index e8187162..ff89e2b4 100644 --- a/RedPandaIDE/project.cpp +++ b/RedPandaIDE/project.cpp @@ -50,6 +50,7 @@ Project::Project(const QString &filename, const QString &name, QObject *parent) : QObject(parent), mName(name), + mModified(false), mModel(this), mEditorList(editorList), mFileSystemWatcher(fileSystemWatcher) diff --git a/libs/qsynedit/qsynedit/SynEdit.h b/libs/qsynedit/qsynedit/SynEdit.h index e3bc9f91..342f9ee9 100644 --- a/libs/qsynedit/qsynedit/SynEdit.h +++ b/libs/qsynedit/qsynedit/SynEdit.h @@ -680,8 +680,7 @@ private: PUndoList mUndoList; PRedoList mRedoList; QPoint mMouseDownPos; - bool mHideSelection; - int mMouseWheelAccumulator; + int mMouseWheelAccumulator; EditCaretType mOverwriteCaret; EditCaretType mInsertCaret; QPoint mCaretOffset; diff --git a/libs/qsynedit/qsynedit/TextPainter.cpp b/libs/qsynedit/qsynedit/TextPainter.cpp index f0be92e9..6bd6cdad 100644 --- a/libs/qsynedit/qsynedit/TextPainter.cpp +++ b/libs/qsynedit/qsynedit/TextPainter.cpp @@ -252,7 +252,7 @@ void SynEditTextPainter::computeSelectionInfo() BufferCoord vEnd; bAnySelection = false; // Only if selection is visible anyway. - if (!edit->mHideSelection || edit->hasFocus()) { + if (edit->hasFocus()) { bAnySelection = true; // Get the *real* start of the selected area. if (edit->mBlockBegin.line < edit->mBlockEnd.line) {