Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
seqtools
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
seqtools
Commits
9832d88e
Commit
9832d88e
authored
14 years ago
by
gb10
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a bug with drawing exons introduced in previous changes
parent
c6648824
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sequencecellrenderer.c
+1
-1
1 addition, 1 deletion
sequencecellrenderer.c
utilities.c
+15
-7
15 additions, 7 deletions
utilities.c
utilities.h
+1
-1
1 addition, 1 deletion
utilities.h
with
17 additions
and
9 deletions
sequencecellrenderer.c
+
1
−
1
View file @
9832d88e
...
...
@@ -836,7 +836,7 @@ static IntRange getVisibleMspRange(MSP *msp, RenderData *data)
if
(
rangesOverlap
(
&
result
,
data
->
displayRange
))
{
/* Limit the returned range to the display range. */
boundsLimitRange
(
&
result
,
data
->
displayRange
);
boundsLimitRange
(
&
result
,
data
->
displayRange
,
FALSE
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
utilities.c
+
15
−
7
View file @
9832d88e
...
...
@@ -261,25 +261,33 @@ void boundsLimitValue(int *value, const IntRange const *range)
}
/* Utility to bounds-limit the first range to within the second.
M
aintain
s the length
* of the range if possible by shifting the range. */
void
boundsLimitRange
(
IntRange
*
range
,
const
IntRange
const
*
limit
)
/* Utility to bounds-limit the first range to within the second.
If m
aintain
Len is true, maintains
*
the length
of the range if possible by shifting the range. */
void
boundsLimitRange
(
IntRange
*
range
,
const
IntRange
const
*
limit
,
const
gboolean
maintainLen
)
{
const
int
len
=
getRangeLength
(
range
);
if
(
range
->
min
<
limit
->
min
)
{
range
->
min
=
limit
->
min
;
range
->
max
=
range
->
min
+
len
;
if
(
maintainLen
)
{
range
->
max
=
range
->
min
+
len
;
}
}
if
(
range
->
max
>
limit
->
max
)
{
range
->
max
=
limit
->
max
;
range
->
min
=
range
->
max
-
len
;
/* If limit is shorter than range, we'll have gone lower than the min again */
boundsLimitValue
(
&
range
->
min
,
limit
);
if
(
maintainLen
)
{
range
->
min
=
range
->
max
-
len
;
/* If limit is shorter than range, we'll have gone lower than the min again */
boundsLimitValue
(
&
range
->
min
,
limit
);
}
}
...
...
This diff is collapsed.
Click to expand it.
utilities.h
+
1
−
1
View file @
9832d88e
...
...
@@ -184,7 +184,7 @@ int getRangeCentre(const IntRange const *range);
gboolean
valueWithinRange
(
const
int
value
,
const
IntRange
const
*
range
);
gboolean
rangesOverlap
(
const
IntRange
const
*
range1
,
const
IntRange
const
*
range2
);
void
boundsLimitValue
(
int
*
value
,
const
IntRange
const
*
range
);
void
boundsLimitRange
(
IntRange
*
range
,
const
IntRange
const
*
limit
);
void
boundsLimitRange
(
IntRange
*
range
,
const
IntRange
const
*
limit
,
const
gboolean
maintainLen
);
char
convertBaseToCorrectCase
(
const
char
charToConvert
,
const
BlxSeqType
seqType
);
int
convertDisplayIdxToDnaIdx
(
const
int
inputIdx
,
...
...
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