Commit c83ad27e authored by Ferdinand Fischer's avatar Ferdinand Fischer
Browse files

fixed bug in quantity.Discrete/cat which avoided concatenation of empty quantities

parent 3543a95e
......@@ -569,7 +569,7 @@ classdef (InferiorClasses = {?quantity.Symbolic}) Discrete ...
% alphabetical order.
% only sort the grids if there is something to sort
if obj(1).nargin > 1
if ~isempty(obj) && obj(1).nargin > 1
[sortedDomain, I] = obj(1).domain.sort(varargin{:});
[obj.domain] = deal(sortedDomain);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment