Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
K0R0L committed Jan 22, 2025
1 parent 06386d5 commit ad44ddf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions DesktopEditor/doctrenderer/embed/DrawingFileEmbed.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "DrawingFileEmbed.h"
#include "../drawingfile.h"
#include "../../raster/BgraFrame.h"

JSSmart<CJSValue> WasmMemoryToJS(BYTE* pWasmData)
{
Expand Down
5 changes: 5 additions & 0 deletions DocxRenderer/src/logic/Page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1917,6 +1917,11 @@ namespace NSDocxRenderer
{
Point p {};
std::vector<Point> lines {};
Crossing(const Point& _p, const std::vector<Point>& _lines)
{
p = _p;
lines = _lines;
}
};
std::vector<Crossing> crossings;
auto find_crossing = [&crossings] (const Point& p) -> Crossing* {
Expand Down
7 changes: 7 additions & 0 deletions DocxRenderer/src/resources/VectorGraphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,13 @@ namespace NSDocxRenderer

return points;
}

CHorVerLinesCollector::CHorVerLine::CHorVerLine(const double& _min, const double& _max, const double& _pos)
{
min = _min;
max = _max;
pos = _pos;
}
const std::vector<CHorVerLinesCollector::CHorVerLine>& CHorVerLinesCollector::GetHorizontal() const
{
return m_arHorizontal;
Expand Down
2 changes: 2 additions & 0 deletions DocxRenderer/src/resources/VectorGraphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ namespace NSDocxRenderer
double min{};
double max{};
double pos{};

CHorVerLine(const double& _min, const double& _max, const double& _pos);
};

CHorVerLinesCollector() = default;
Expand Down

0 comments on commit ad44ddf

Please sign in to comment.