Fix Matrix mInfo to column and slice with default value 1 bug.
This commit is contained in:
@@ -216,10 +216,10 @@ namespace Aurora {
|
||||
, mData(aData)
|
||||
, mInfo(aInfo)
|
||||
{
|
||||
size_t infoSize = aInfo.size();
|
||||
size_t infoSize = mInfo.size();
|
||||
for(;infoSize<3;++infoSize)
|
||||
{
|
||||
aInfo.push_back(1);
|
||||
mInfo.push_back(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ namespace Aurora {
|
||||
}
|
||||
|
||||
int Matrix::getDimSize(int aIndex) const {
|
||||
if (aIndex >= 0 && aIndex < 3 && aIndex < getDims()) {
|
||||
if (aIndex >= 0 && aIndex < 3) {
|
||||
return mInfo.at(aIndex);
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user