SF.net SVN: geany: [933] trunk/src/document.c
eht16 at users.sourceforge.net
eht16 at xxxxx
Wed Oct 25 19:23:24 UTC 2006
Revision: 933
http://svn.sourceforge.net/geany/?rev=933&view=rev
Author: eht16
Date: 2006-10-25 12:23:19 -0700 (Wed, 25 Oct 2006)
Log Message:
-----------
Fixed access before check ;-).
Modified Paths:
--------------
trunk/src/document.c
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2006-10-25 17:03:24 UTC (rev 932)
+++ trunk/src/document.c 2006-10-25 19:23:19 UTC (rev 933)
@@ -1478,13 +1478,14 @@
void document_replace_tabs(gint idx)
{
gint search_pos;
- gint tab_len = sci_get_tab_width(doc_list[idx].sci);
+ gint tab_len;
gchar *tab_str;
struct TextToFind ttf;
if (! DOC_IDX_VALID(idx)) return;
sci_start_undo_action(doc_list[idx].sci);
+ tab_len = sci_get_tab_width(doc_list[idx].sci);
ttf.chrg.cpMin = 0;
ttf.chrg.cpMax = sci_get_length(doc_list[idx].sci);
ttf.lpstrText = (gchar*)"\t";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list