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
5908e2b0
Commit
5908e2b0
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
fix bump handling when bump not set yet.
parent
0428fb32
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/zmapWindowColBump.c
+14
-6
14 additions, 6 deletions
src/zmapWindow/zmapWindowColBump.c
with
14 additions
and
6 deletions
src/zmapWindow/zmapWindowColBump.c
+
14
−
6
View file @
5908e2b0
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See zmapWindow_P.h
* HISTORY:
* Last edited:
Aug
2
8
09:1
2
2009 (edgrif)
* Last edited:
Nov
2
7
09:1
3
2009 (edgrif)
* Created: Tue Sep 4 10:52:09 2007 (edgrif)
* CVS info: $Id: zmapWindowColBump.c,v 1.5
0
2009-
09-02 14:05:34
edgrif Exp $
* CVS info: $Id: zmapWindowColBump.c,v 1.5
1
2009-
11-30 10:54:48
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -375,7 +375,11 @@ void zmapWindowColumnBumpRange(FooCanvasItem *bump_item, ZMapStyleBumpMode bump_
int
start
,
end
;
double
width
,
bump_spacing
=
0
.
0
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
g_return_if_fail
(
bump_mode
!=
ZMAPBUMP_INVALID
);
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
/* Decide if the column_item is a column group or a feature within that group. */
if
(
ZMAP_IS_CANVAS_ITEM
(
bump_item
))
...
...
@@ -391,6 +395,7 @@ void zmapWindowColumnBumpRange(FooCanvasItem *bump_item, ZMapStyleBumpMode bump_
else
zMapAssertNotReached
();
window
=
container
->
window
;
column_features
=
(
FooCanvasGroup
*
)
zmapWindowContainerGetFeatures
((
ZMapWindowContainerGroup
)
container
)
;
...
...
@@ -401,10 +406,6 @@ void zmapWindowColumnBumpRange(FooCanvasItem *bump_item, ZMapStyleBumpMode bump_
zmapWindowContainerFeatureSetSortFeatures
(
container
,
0
);
bump_properties
.
container
=
container
;
bump_properties
.
window
=
window
=
container
->
window
;
bump_properties
.
overlap_mode
=
bump_mode
;
zMapWindowBusy
(
window
,
TRUE
)
;
/* Need to know if mark is set for limiting feature display for several modes/feature types. */
...
...
@@ -413,6 +414,13 @@ void zmapWindowColumnBumpRange(FooCanvasItem *bump_item, ZMapStyleBumpMode bump_
/* We need this to know whether to remove and add Gaps */
historic_bump_mode
=
zmapWindowContainerFeatureSetGetBumpMode
(
container
)
;
if
(
bump_mode
==
ZMAPBUMP_INVALID
)
bump_mode
=
historic_bump_mode
;
bump_properties
.
container
=
container
;
bump_properties
.
window
=
window
;
bump_properties
.
overlap_mode
=
bump_mode
;
/* If user clicked on the column, not a feature within a column then we need to bump all styles
* and features within the column, otherwise we just bump the specific features. */
...
...
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