Commit 9764d38a authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Fix buffer underflow issue.

Due to the fix for the newline issue with Matlab, there
was a buffer underflow.  Fix.


git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/trunk/TableTool@9560 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent c1914645
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -41,11 +41,13 @@ check_string = [check_string counter sprintf('\n')];
for i=1:size(grid.cells,2)
    condition_string = get(grid.cells(i).cond,'string');
    
    if size(condition_string,1) > 0
        s = [condition_string(1,:)];
        for j = 2:size(condition_string,1)
           s = [s ' ' condition_string(j,:)];
        end
        condition_string = s;
    end
    
    if(~isempty(condition_string))