summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/odf.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-06-07 15:43:04 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-06-07 15:43:04 +0000
commit92631f68a2295bbfe024195d1f1f208822bcc629 (patch)
tree00eaeeda9949f39322b247da6574a9274352e994 /src/extension/internal/odf.cpp
parentFix compile for GTK+ less than 2.20 when GSEAL is on. Fixes bug #1009010. (diff)
downloadinkscape-92631f68a2295bbfe024195d1f1f208822bcc629.tar.gz
inkscape-92631f68a2295bbfe024195d1f1f208822bcc629.zip
cppcheck
(bzr r11465)
Diffstat (limited to 'src/extension/internal/odf.cpp')
-rw-r--r--src/extension/internal/odf.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp
index 8bb96920d..c8c187c77 100644
--- a/src/extension/internal/odf.cpp
+++ b/src/extension/internal/odf.cpp
@@ -211,9 +211,11 @@ public:
SVDMatrix transpose()
{
SVDMatrix result(cols, rows);
- for (unsigned int i=0 ; i<rows ; i++)
- for (unsigned int j=0 ; j<cols ; j++)
+ for (unsigned int i=0 ; i<rows ; i++){
+ for (unsigned int j=0 ; j<cols ; j++){
result(j, i) = d[i*cols + j];
+ }
+ }
return result;
}
@@ -239,9 +241,11 @@ private:
rows = other.rows;
cols = other.cols;
size = other.size;
+ badval = other.badval;
d = new double[size];
- for (unsigned int i=0 ; i<size ; i++)
+ for (unsigned int i=0 ; i<size ; i++){
d[i] = other.d[i];
+ }
}
double badval;