Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gtk
Commits
4c44499b
Commit
4c44499b
authored
Aug 07, 2001
by
Matthias Clasen
Browse files
gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323)
parent
f9cc4426
Changes
8
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
4c44499b
2001-08-07 <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
...
...
ChangeLog.pre-2-0
View file @
4c44499b
2001-08-07 <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
...
...
ChangeLog.pre-2-10
View file @
4c44499b
2001-08-07 <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
...
...
ChangeLog.pre-2-2
View file @
4c44499b
2001-08-07 <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
...
...
ChangeLog.pre-2-4
View file @
4c44499b
2001-08-07 <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
...
...
ChangeLog.pre-2-6
View file @
4c44499b
2001-08-07 <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
...
...
ChangeLog.pre-2-8
View file @
4c44499b
2001-08-07 <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
...
...
gtk/gtktextdisplay.c
View file @
4c44499b
...
...
@@ -539,7 +539,7 @@ render_para (GdkDrawable *drawable,
y
+
PANGO_PIXELS
(
baseline
),
FALSE
);
if
(
selection_start_index
<
byte_offset
+
line
->
length
&&
if
(
selection_start_index
<
=
byte_offset
+
line
->
length
&&
selection_end_index
>
byte_offset
)
/* Some selected */
{
GdkRegion
*
clip_region
=
get_selected_clip
(
render_state
,
layout
,
line
,
...
...
@@ -746,7 +746,7 @@ gtk_text_layout_draw (GtkTextLayout *layout,
{
GtkTextIter
line_start
,
line_end
;
gint
byte_count
;
gtk_text_layout_get_iter_at_line
(
layout
,
&
line_start
,
line
,
0
);
...
...
@@ -757,8 +757,8 @@ gtk_text_layout_draw (GtkTextLayout *layout,
&
line_end
,
line
,
byte_count
-
1
);
if
(
gtk_text_iter_compare
(
&
selection_start
,
&
line_end
)
<
0
&&
gtk_text_iter_compare
(
&
selection_end
,
&
line_start
)
>
0
)
if
(
gtk_text_iter_compare
(
&
selection_start
,
&
line_end
)
<
=
0
&&
gtk_text_iter_compare
(
&
selection_end
,
&
line_start
)
>
=
0
)
{
if
(
gtk_text_iter_compare
(
&
selection_start
,
&
line_start
)
>=
0
)
selection_start_index
=
gtk_text_iter_get_line_index
(
&
selection_start
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment