fix SetStyle tag removing, broken in r45186
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -149,7 +149,7 @@ static void wxGtkTextApplyTagsFromAttr(GtkWidget *text,
|
|||||||
gtk_text_iter_get_line(start) );
|
gtk_text_iter_get_line(start) );
|
||||||
gtk_text_iter_forward_line(¶_end);
|
gtk_text_iter_forward_line(¶_end);
|
||||||
|
|
||||||
wxGtkTextRemoveTagsWithPrefix(text_buffer, "WXALIGNMENT", start, end);
|
wxGtkTextRemoveTagsWithPrefix(text_buffer, "WXALIGNMENT", ¶_start, ¶_end);
|
||||||
|
|
||||||
GtkJustification align;
|
GtkJustification align;
|
||||||
switch (attr.GetAlignment())
|
switch (attr.GetAlignment())
|
||||||
@@ -195,7 +195,7 @@ static void wxGtkTextApplyTagsFromAttr(GtkWidget *text,
|
|||||||
gtk_text_iter_get_line(start) );
|
gtk_text_iter_get_line(start) );
|
||||||
gtk_text_iter_forward_line(¶_end);
|
gtk_text_iter_forward_line(¶_end);
|
||||||
|
|
||||||
wxGtkTextRemoveTagsWithPrefix(text_buffer, "WXINDENT", start, end);
|
wxGtkTextRemoveTagsWithPrefix(text_buffer, "WXINDENT", ¶_start, ¶_end);
|
||||||
|
|
||||||
// Convert indent from 1/10th of a mm into pixels
|
// Convert indent from 1/10th of a mm into pixels
|
||||||
float factor =
|
float factor =
|
||||||
@@ -239,7 +239,7 @@ static void wxGtkTextApplyTagsFromAttr(GtkWidget *text,
|
|||||||
gtk_text_iter_get_line(start) );
|
gtk_text_iter_get_line(start) );
|
||||||
gtk_text_iter_forward_line(¶_end);
|
gtk_text_iter_forward_line(¶_end);
|
||||||
|
|
||||||
wxGtkTextRemoveTagsWithPrefix(text_buffer, "WXTABS", start, end);
|
wxGtkTextRemoveTagsWithPrefix(text_buffer, "WXTABS", ¶_start, ¶_end);
|
||||||
|
|
||||||
const wxArrayInt& tabs = attr.GetTabs();
|
const wxArrayInt& tabs = attr.GetTabs();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user