Kaydet (Commit) 07c61dc5 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fixed access before check ;-).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@933 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 82f1dca4
......@@ -1478,13 +1478,14 @@ void document_print(gint idx)
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";
......
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