gnumeric r16293 - in trunk: . src



Author: mortenw
Date: Fri Jan 25 00:02:51 2008
New Revision: 16293
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16293&view=rev

Log:
2008-01-24  Jean Brefort  <jean brefort normalesup org>

	* src/clipboard.c (paste_object): Fix paste-graph
	problem.  [#507342]



Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/src/clipboard.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Fri Jan 25 00:02:51 2008
@@ -1,5 +1,8 @@
 Gnumeric 1.9.0
 
+Jean:
+	* Fix graph paste.  [#507342]
+
 Jody:
 	* Fix cell comment positioning problem.  [#506017]
 

Modified: trunk/src/clipboard.c
==============================================================================
--- trunk/src/clipboard.c	(original)
+++ trunk/src/clipboard.c	Fri Jan 25 00:02:51 2008
@@ -240,8 +240,8 @@
 	SheetObjectAnchor tmp;
 
 	sheet_object_anchor_assign (&tmp, sheet_object_get_anchor (src));
-	if ((pt->paste_flags & PASTE_COMMENTS)) {
-		if (G_OBJECT_TYPE (src) != CELL_COMMENT_TYPE ||
+	if (G_OBJECT_TYPE (src) == CELL_COMMENT_TYPE) {
+		if ((pt->paste_flags & PASTE_COMMENTS) &&
 		    (pt->paste_flags & PASTE_IGNORE_COMMENTS_AT_ORIGIN &&
 		     tmp.cell_bound.start.col == 0  &&
 		     tmp.cell_bound.start.row == 0))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]