]> git.donarmstrong.com Git - xournal.git/commitdiff
Bugfixes: release 0.4.2.1.
authorauroux <auroux>
Thu, 27 Mar 2008 22:34:26 +0000 (22:34 +0000)
committerauroux <auroux>
Thu, 27 Mar 2008 22:34:26 +0000 (22:34 +0000)
ChangeLog
NEWS
README
configure.in
html-doc/manual.html
src/TODO
src/xo-callbacks.c
src/xo-paint.c

index 3d65b56c39910b14d764d95796d7b7ceb27f6347..b7b94e3306f989b96876bf3dfc7729a5816ddf42 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Version 0.4.2.1 (Mar 27, 2008):
+  - bugfix for #1926757 (crash upon pasting variable-width stroke)
+  - bugfix: set ruler/recognizer setting to default upon switching tools
+
 Version 0.4.2 (Mar 25, 2008):
   - bugfixes for X.org 7.3; allow XInput and core events in reverse order
   - resize selection (patch contributed by Andy Neitzke)
diff --git a/NEWS b/NEWS
index 8adf3206aac86977d968268ab6308d6bf7af0566..89600d4d4370705ecc04f5d50cb7a78913b963d5 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-Version 0.4.2 (March 25, 2008)
+Version 0.4.2.1 (March 27, 2008)
 
 Installation:  see INSTALL
 User's manual: see html-doc/manual.html
diff --git a/README b/README
index 8adf3206aac86977d968268ab6308d6bf7af0566..89600d4d4370705ecc04f5d50cb7a78913b963d5 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-Version 0.4.2 (March 25, 2008)
+Version 0.4.2.1 (March 27, 2008)
 
 Installation:  see INSTALL
 User's manual: see html-doc/manual.html
index 66c9057e0594ad02988a3847c59dddb647565fac..b85ae367738fabe88eea025c22c93026bee56394 100644 (file)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_INIT(configure.in)
-AM_INIT_AUTOMAKE(xournal, 0.4.2)
+AM_INIT_AUTOMAKE(xournal, 0.4.2.1)
 AM_CONFIG_HEADER(config.h)
 AM_MAINTAINER_MODE
 
index f043617f789896cd3035b36b75b012c51f01030e..ce3edc14dfdb381dbc087f196e9a02286fbce4e7 100644 (file)
@@ -24,7 +24,7 @@
   Xournal User's Manual
 </h2>
 <p style="font-size: 0.95em; text-align: center; color: rgb(0,0,0)">
- Version 0.4.2
+ Version 0.4.2.1
 </p>
 <hr />
 <p>
@@ -580,6 +580,13 @@ Bug reports and suggestions can also be submitted on Xournal's
 <a name="changelog"></a>
 <h2 class="subtitle">Version history</h2>
 <p>
+Version 0.4.2.1 (Mar 27, 2008):
+<ul>
+ <li>bugfix for #1926757 (crash upon pasting variable-width stroke)</li>
+ <li>bugfix: set ruler/recognizer setting to default upon switching tools</li>
+</ul>
+</p>
+<p>
 Version 0.4.2 (Mar 25, 2008):
 <ul>
  <li>bugfixes for X.org 7.3; allow XInput and core events in reverse order</li>
index 0cff9694f30662b5360e23a710e39b7de58475b9..d73e6dd77c0cc763fe97361fffb4cba44a7dbcd0 100644 (file)
--- a/src/TODO
+++ b/src/TODO
@@ -5,6 +5,15 @@ List of features to be implemented (not in any particular order)
 - porting to Win32 and MacOS
 - multiple-scenario undo history
 
+- improve recognizer: two passes for polygons (low tolerance, then higher)
+  to better detect elongated rectangles? (if low tolerance recognizer
+  doesn't get a rectangle, then use higher tolerance for everything else,
+  since otherwise there's too much risk of splitting a segment into 2)
+- snap-to-grid (also for ruler & recognizer vertices)
+  and maybe also snap-to-vertices (option for ruler and recognizer)?
+- allow broken PDF with some 19-byte xref entries (LF instead of CRLF).??
+  (Phil Rhoades 3/25/08)
+
 - render page to bitmap: for export, preview, and copy-paste
     (render using libart, see how gnomecanvas does it?)
     (copy-paste: config option to render only current layer or all below?)
index 9b1e85b9bdfecdfd9fba9d6837f6a974057da68f..d52b47626fda5bac41cc60d5102c8f871638d1e7 100644 (file)
@@ -1698,8 +1698,8 @@ on_toolsPen_activate                   (GtkMenuItem     *menuitem,
   reset_selection();
   ui.toolno[0] = TOOL_PEN;
   ui.cur_brush = &(ui.brushes[0][TOOL_PEN]);
-  ui.cur_brush->ruler = FALSE;
-  ui.cur_brush->recognizer = FALSE;
+  ui.cur_brush->ruler = ui.default_brushes[TOOL_PEN].ruler;
+  ui.cur_brush->recognizer = ui.default_brushes[TOOL_PEN].recognizer;
   update_mapping_linkings(TOOL_PEN);
   update_tool_buttons();
   update_tool_menu();
@@ -1756,8 +1756,8 @@ on_toolsHighlighter_activate           (GtkMenuItem     *menuitem,
   reset_selection();
   ui.toolno[0] = TOOL_HIGHLIGHTER;
   ui.cur_brush = &(ui.brushes[0][TOOL_HIGHLIGHTER]);
-  ui.cur_brush->ruler = FALSE;
-  ui.cur_brush->recognizer = FALSE;
+  ui.cur_brush->ruler = ui.default_brushes[TOOL_HIGHLIGHTER].ruler;
+  ui.cur_brush->recognizer = ui.default_brushes[TOOL_HIGHLIGHTER].recognizer;
   update_mapping_linkings(TOOL_HIGHLIGHTER);
   update_tool_buttons();
   update_tool_menu();
index 79099411aec7634bd41b6ed8dbeeb033a88e542b..47fd6137b2c074b597677a628929a93789324f5f 100644 (file)
@@ -608,6 +608,7 @@ gboolean start_resizesel(GdkEvent *event)
     ui.selection->new_x1 = ui.selection->bbox.left;
     ui.selection->new_x2 = ui.selection->bbox.right;
     gnome_canvas_item_set(ui.selection->canvas_item, "dash", NULL, NULL);
+    update_cursor_for_resize(pt);
     return TRUE;
   }
   return FALSE;
@@ -1045,7 +1046,7 @@ void clipboard_paste(void)
       }
       p+= 2*item->path->num_points*sizeof(double);
       if (item->brush.variable_width) {
-        g_memmove(p, item->widths, (item->path->num_points-1)*sizeof(double));
+        item->widths = g_memdup(p, (item->path->num_points-1)*sizeof(double));
         p+= (item->path->num_points-1)*sizeof(double);
       }
       else item->widths = NULL;