diff options
Diffstat (limited to 'plugins/Utils/mir_smileys.cpp')
-rw-r--r-- | plugins/Utils/mir_smileys.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Utils/mir_smileys.cpp b/plugins/Utils/mir_smileys.cpp index ab5f666668..cb0c6c6b44 100644 --- a/plugins/Utils/mir_smileys.cpp +++ b/plugins/Utils/mir_smileys.cpp @@ -425,7 +425,7 @@ SortedList * ReplaceSmileys(const TCHAR *text, int text_size, const char *protoc piece->start_pos = next_text_pos - text;
piece->len = start - next_text_pos;
- List_Append(plText, piece);
+ List_Insert(plText, piece, plText->realCount);
}
// Add smiley
@@ -454,7 +454,7 @@ SortedList * ReplaceSmileys(const TCHAR *text, int text_size, const char *protoc *max_smiley_height = max(piece->smiley_height, *max_smiley_height);
- List_Append(plText, piece);
+ List_Insert(plText, piece, plText->realCount);
}
next_text_pos = end;
@@ -470,7 +470,7 @@ SortedList * ReplaceSmileys(const TCHAR *text, int text_size, const char *protoc piece->start_pos = next_text_pos - text;
piece->len = last_text_pos - next_text_pos;
- List_Append(plText, piece);
+ List_Insert(plText, piece, plText->realCount);
}
CallService(MS_SMILEYADD_BATCHFREE, 0, (LPARAM)spres);
|