Commit d3f959d4 authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow

Fix paste into locked cells [#702292]

2013-10-06  Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* src/cmd-edit.c (cmd_paste): chceck for locked cells
parent 379453bb
2013-10-06 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/cmd-edit.c (cmd_paste): chceck for locked cells
2013-10-03 Morten Welinder <terra@gnome.org>
* src/item-cursor.c (item_cursor_draw): Drop expose area
......
......@@ -2,6 +2,7 @@ Gnumeric 1.12.8
Andreas:
* Update/fix documentation [#708679][#707075][#708556]
* Fix paste into locked cells [#702292]
Jean:
* Fix radio buttons behavior in covariance dialog. [#707595]
......
......@@ -294,10 +294,18 @@ cmd_paste (WorkbookControl *wbc, GnmPasteTarget const *pt)
{
GnmCellRegion *content;
GnmRange const *src_range;
GnmRange dst;
g_return_if_fail (pt != NULL);
g_return_if_fail (IS_SHEET (pt->sheet));
dst = pt->range;
/* Check for locks */
if (cmd_cell_range_is_locked_effective (pt->sheet, &dst, wbc,
_("Paste")))
return ;
src_range = gnm_app_clipboard_area_get ();
content = gnm_app_clipboard_contents_get ();
......@@ -310,8 +318,6 @@ cmd_paste (WorkbookControl *wbc, GnmPasteTarget const *pt)
int const cols = (src_range->end.col - src_range->start.col);
int const rows = (src_range->end.row - src_range->start.row);
GnmRange dst = pt->range;
if (range_is_singleton (&dst)) {
dst.end.col = dst.start.col + cols;
dst.end.row = dst.start.row + rows;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment