Commit 805cbf9a authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Проблема с измерением документа _.xlsx (по центру работало не совсем верно)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52055 954022d7-b5bf-4e40-9824-e11837661b57
parent 4a432768
......@@ -910,7 +910,7 @@
if (align === "right") {
x_ = asc_calcnpt(x + maxWidth - self._calcLineWidth(startPos), ppix, -1/*px*/);
} else if (align === "center") {
x_ = asc_calcnpt(x + 0.5 * (maxWidth - self._calcLineWidth(startPos)), ppix, 0/*px*/);
x_ = asc_calcnpt(x + 0.5 * (maxWidth - asc_calcnpt(self._calcLineWidth(startPos), ppix)), ppix, 0/*px*/);
}
l.startX = x_;
return x_;
......
Markdown is supported
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