Skip to content

Commit

Permalink
Merge pull request #128 from RNA-FRETools/correct-map-tags-leaking
Browse files Browse the repository at this point in the history
Correct reference points leaking in mapping tool.
  • Loading branch information
mca-sh authored Mar 7, 2024
2 parents 2daa963 + ffdb394 commit bcea60f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MASH-FRET/.release_version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"tag" : "1.3.3.3",
"prev_commit_hash" : "fd17e646"
"prev_commit_hash" : "ea483ee5"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ function buildMappingTool(img, lim, h_fig)
htxt = 14;
winratio = 0.75;
zoomsldratio = 0.3;
stpbig = 1/4;
stpzoomsmall = 1/20;
zoomfactmax = 5;
zoomfactmax = 10;
figttl = 'Mapping tool';
menulbl0 = 'Delete last point';
menulbl1 = 'Delete last set';
Expand Down Expand Up @@ -145,7 +143,7 @@ function buildMappingTool(img, lim, h_fig)
y = y+htxt;
q.slider_zoom = uicontrol('Style', 'slider', 'Units', un, 'Position', ...
[x y wtxt hsld], 'Min', 1, 'Max', zoomfactmax, 'Value', 1, ...
'SliderStep', [stpzoomsmall stpbig], 'Callback', ...
'SliderStep', [1/(4*(zoomfactmax-1)) 1/(zoomfactmax-1)], 'Callback', ...
{@slider_zoom_Callback, h_fig});


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ function updatePnts(h_fig)
for c = 1:nChan
q.txt{c} = [];
q.txtFull{c} = [];
x_lim = get(q.axes_top(c), 'XLim');
y_lim = get(q.axes_top(c), 'YLim');
for n = 1:size(pntCoord{c},1)
if pntCoord{c}(n,2)>y_lim(1) && pntCoord{c}(n,2)<y_lim(2)
if pntCoord{c}(n,2)>y_lim(1) && pntCoord{c}(n,2)<y_lim(2) && ...
pntCoord{c}(n,1)>x_lim(1) && pntCoord{c}(n,1)<x_lim(2)
q.txt{c}(size(q.txt{c},1)+1,1) = text('Parent', ...
q.axes_top(c), 'String', num2str(pntCoord{c}(n,3)), ...
'FontUnits', 'points', 'FontSize', 7, 'FontWeight', ...
Expand Down

0 comments on commit bcea60f

Please sign in to comment.