Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
3683469b
Commit
3683469b
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
fix bug in item_found setting.
parent
e669f93c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
foocanvas/zmap_source/libfoocanvas/foozmap-canvas-text.c
+7
-10
7 additions, 10 deletions
foocanvas/zmap_source/libfoocanvas/foozmap-canvas-text.c
with
7 additions
and
10 deletions
foocanvas/zmap_source/libfoocanvas/foozmap-canvas-text.c
+
7
−
10
View file @
3683469b
...
...
@@ -27,7 +27,7 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Mar
22 08:06 2008 (rds
)
* Last edited: Mar
16 14:19 2010 (edgrif
)
* Created: Fri Jan 25 12:01:12 2008 (rds)
* CVS info: $Id: foozmap-canvas-text.c 1.2 2010-03-12 18:21:36 edgrif Exp $
*-------------------------------------------------------------------
...
...
@@ -215,10 +215,9 @@ gboolean foo_canvas_item_text_index2item(FooCanvasItem *item,
double
*
item_coords_out
)
{
FooCanvasZMapText
*
zmap
;
gboolean
index_found
;
gboolean
index_found
=
FALSE
;
if
(
FOO_IS_CANVAS_ZMAP_TEXT
(
item
)
&&
(
zmap
=
FOO_CANVAS_ZMAP_TEXT
(
item
)))
if
(
FOO_IS_CANVAS_ZMAP_TEXT
(
item
)
&&
(
zmap
=
FOO_CANVAS_ZMAP_TEXT
(
item
)))
{
FooCanvasZMapTextPrivate
*
private_data
;
FooCanvasGroup
*
parent_group
;
...
...
@@ -247,18 +246,18 @@ gboolean foo_canvas_item_text_index2item(FooCanvasItem *item,
row_idx
=
index
%
width
;
row
=
(
index
-
row_idx
)
/
width
;
if
(
row_idx
==
0
)
if
(
row_idx
==
0
)
{
row
--
;
row_idx
=
draw_data
->
table
.
width
;
}
if
(
row_idx
>
draw_data
->
table
.
width
)
if
(
row_idx
>
draw_data
->
table
.
width
)
row_idx
=
draw_data
->
table
.
width
;
row_idx
--
;
/* zero based. */
if
(
item_coords_out
)
if
(
item_coords_out
)
{
w
=
(
draw_data
->
table
.
ch_width
/
draw_data
->
zx
);
h
=
((
draw_data
->
table
.
ch_height
+
draw_data
->
table
.
spacing
)
/
draw_data
->
zy
);
...
...
@@ -272,10 +271,8 @@ gboolean foo_canvas_item_text_index2item(FooCanvasItem *item,
index_found
=
TRUE
;
}
}
else
index_found
=
FALSE
;
return
index_found
;
return
index_found
;
}
int
foo_canvas_item_world2text_index
(
FooCanvasItem
*
item
,
double
x
,
double
y
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment