minor fix
This commit is contained in:
parent
17bcac80fd
commit
ab6feb1758
|
@ -50,6 +50,7 @@ Project::Project(const QString &filename, const QString &name,
|
||||||
QObject *parent) :
|
QObject *parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
mName(name),
|
mName(name),
|
||||||
|
mModified(false),
|
||||||
mModel(this),
|
mModel(this),
|
||||||
mEditorList(editorList),
|
mEditorList(editorList),
|
||||||
mFileSystemWatcher(fileSystemWatcher)
|
mFileSystemWatcher(fileSystemWatcher)
|
||||||
|
|
|
@ -680,7 +680,6 @@ private:
|
||||||
PUndoList mUndoList;
|
PUndoList mUndoList;
|
||||||
PRedoList mRedoList;
|
PRedoList mRedoList;
|
||||||
QPoint mMouseDownPos;
|
QPoint mMouseDownPos;
|
||||||
bool mHideSelection;
|
|
||||||
int mMouseWheelAccumulator;
|
int mMouseWheelAccumulator;
|
||||||
EditCaretType mOverwriteCaret;
|
EditCaretType mOverwriteCaret;
|
||||||
EditCaretType mInsertCaret;
|
EditCaretType mInsertCaret;
|
||||||
|
|
|
@ -252,7 +252,7 @@ void SynEditTextPainter::computeSelectionInfo()
|
||||||
BufferCoord vEnd;
|
BufferCoord vEnd;
|
||||||
bAnySelection = false;
|
bAnySelection = false;
|
||||||
// Only if selection is visible anyway.
|
// Only if selection is visible anyway.
|
||||||
if (!edit->mHideSelection || edit->hasFocus()) {
|
if (edit->hasFocus()) {
|
||||||
bAnySelection = true;
|
bAnySelection = true;
|
||||||
// Get the *real* start of the selected area.
|
// Get the *real* start of the selected area.
|
||||||
if (edit->mBlockBegin.line < edit->mBlockEnd.line) {
|
if (edit->mBlockBegin.line < edit->mBlockEnd.line) {
|
||||||
|
|
Loading…
Reference in New Issue