U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
[BUG & FIX] [GridCtrl] Copy on GridCtrl with no selection will crash a program.
https://www.ultimatepp.org/forums/index.php?t=rview&goto=41379&th=8006#msg_41379
Fix:
Make the following change to SetClipboard in GridCtrl.cpp
void GridCtrl::SetClipboard(bool all, bool silent)
{
// skipped many lines
// change this line
bool row_selected = select_row && IsSelected(curpos.y, false);
// to
bool row_selected = select_row && curpos.y=>0 && IsSelected(curpos.y, false);