Fix column switching when clicking on column drag bar

This commit is contained in:
manongjohn 2022-01-22 22:58:14 -05:00
parent 3bcec4f4b5
commit 8e34bb8e02

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