diff --git a/include/msksheet.cpp b/include/msksheet.cpp index da3d21de0..a3127523f 100755 --- a/include/msksheet.cpp +++ b/include/msksheet.cpp @@ -873,6 +873,7 @@ void TSpreadsheet::enable_column(int col, bool on) { const bool change = _column_disabled[col] == on; _column_disabled.set(col, !on); +#if XVT_OS == XVT_OS_WIN if (change) { int num; @@ -889,6 +890,7 @@ void TSpreadsheet::enable_column(int col, bool on) RCT r; xi_get_rect(column, &r); xi_set_column_width(column, (r.right-r.left+1) / CHARX); // Force redraw } +#endif }