sc: show a message dialog if insert cells fail
Use case, go to the max row and insert a row. Signed-off-by: Henry Castro <hcastro@collabora.com> Change-Id: I930d7724b9c94e10e9207ec749b7249d2fee0e39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160314 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
parent
4262992e61
commit
eccbe3bb4e
2 changed files with 6 additions and 0 deletions
|
@ -550,6 +550,7 @@
|
|||
#define STR_UNDO_EDIT_SPARKLINE NC_("STR_UNDO_EDIT_SPARKLINE", "Edit Sparkline")
|
||||
#define STR_UNDO_THEME_CHANGE NC_("STR_UNDO_THEME_CHANGE", "Theme Change")
|
||||
#define STR_UNDO_THEME_COLOR_CHANGE NC_("STR_UNDO_THEME_COLOR_CHANGE", "Theme Color Change")
|
||||
#define STR_ERR_INSERT_CELLS NC_("STR_ERR_INSERT_CELLS", "Failed to insert cells")
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1776,6 +1776,11 @@ bool ScViewFunc::InsertCells( InsCellCmd eCmd, bool bRecord, bool bPartOfPaste )
|
|||
true /* bGroups */, GetViewData().GetTabNo());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ErrorMessage(STR_ERR_INSERT_CELLS);
|
||||
}
|
||||
|
||||
OUString aStartAddress = aRange.aStart.GetColRowString();
|
||||
OUString aEndAddress = aRange.aEnd.GetColRowString();
|
||||
collectUIInformation({{"RANGE", aStartAddress + ":" + aEndAddress}}, "INSERT_CELLS");
|
||||
|
|
Loading…
Reference in a new issue