Merge pull request #876 from manongjohn/fix_column_dragbar_selection

Fix column switching when clicking on column drag bar
This commit is contained in:
manongjohn 2022-01-28 10:37:22 -05:00 committed by GitHub
commit a51e31f81d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2341,6 +2341,7 @@ void ColumnArea::mousePressEvent(QMouseEvent *event) {
// becomes dragbar
&& (o->rect(PredefinedRect::LAYER_NUMBER).contains(mouseInCell) ||
o->rect(PredefinedRect::LAYER_NAME).contains(mouseInCell)))) {
m_viewer->setCurrentColumn(m_col);
setDragTool(XsheetGUI::DragTool::makeColumnMoveTool(m_viewer));
} else if (o->rect(PredefinedRect::LOCK_AREA).contains(mouseInCell)) {
// lock button