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
01d38b07
Commit
01d38b07
authored
15 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
Fix RT # 107182 and 68249
parent
a3422634
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
src/zmapWindow/zmapWindowMark.c
+15
-6
15 additions, 6 deletions
src/zmapWindow/zmapWindowMark.c
with
15 additions
and
6 deletions
src/zmapWindow/zmapWindowMark.c
+
15
−
6
View file @
01d38b07
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See zmapWindow_P.h
* HISTORY:
* Last edited:
May 14 01:2
3 200
8
(rds)
* Last edited:
Apr 15 14:3
3 200
9
(rds)
* Created: Tue Jan 16 09:51:19 2007 (rds)
* CVS info: $Id: zmapWindowMark.c,v 1.1
4
200
8
-0
5
-1
4 08:52:1
2 rds Exp $
* CVS info: $Id: zmapWindowMark.c,v 1.1
5
200
9
-0
4
-1
5 14:38:5
2 rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -223,29 +223,38 @@ FooCanvasItem *zmapWindowMarkGetItem(ZMapWindowMark mark)
return
mark
->
range_item
;
}
gboolean
zmapWindowMarkSetWorldRange
(
ZMapWindowMark
mark
,
double
world_x1
,
double
world_y1
,
double
world_x2
,
double
world_y2
)
{
gboolean
result
;
FooCanvasGroup
*
block_grp_out
;
double
scroll_x2
;
double
scroll_x1
,
scroll_x2
;
int
y1_out
,
y2_out
;
zMapAssert
(
mark
&&
ZMAP_MAGIC_IS_VALID
(
mark_magic_G
,
mark
->
magic
))
;
zMapAssert
(
mark
);
zMapAssert
(
ZMAP_MAGIC_IS_VALID
(
mark_magic_G
,
mark
->
magic
))
;
zmapWindowMarkReset
(
mark
)
;
y1_out
=
y2_out
=
0
;
/* clamp x to scroll region. Fix RT # 55131 */
zmapWindowGetScrollRegion
(
mark
->
window
,
NULL
,
NULL
,
&
scroll_x2
,
NULL
);
zmapWindowGetScrollRegion
(
mark
->
window
,
&
scroll_x1
,
NULL
,
&
scroll_x2
,
NULL
);
if
(
world_x2
>
scroll_x2
)
world_x2
=
scroll_x2
;
{
world_x2
=
scroll_x2
;
/* Together with swapping below, appears to fix RT # 68249, thanks to log from RT # 107182 */
world_x1
=
((
scroll_x1
)
+
((
scroll_x2
-
scroll_x1
)
/
2
));
}
if
(
world_y1
>=
world_y2
)
world_y1
=
world_y2
-
1
.
0
;
if
(
world_x1
>
world_x2
)
ZMAP_SWAP_TYPE
(
double
,
world_x1
,
world_x2
);
if
((
result
=
zmapWindowWorld2SeqCoords
(
mark
->
window
,
world_x1
,
world_y1
,
world_x2
,
world_y2
,
&
block_grp_out
,
&
y1_out
,
&
y2_out
)))
{
...
...
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