fix xwindow bug

fix xwindow bug
This commit is contained in:
pebble2015 2017-08-27 13:44:06 +08:00
parent 0ac12101fc
commit f3d5d18035
4 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ project(xlnt_all)
set(COMBINED_PROJECT TRUE)
# Library type
option(STATIC "Set to ON to build xlnt as a static library instead of a shared library" OFF)
option(STATIC "Set to ON to build xlnt as a static library instead of a shared library" ON)
# Optional components
option(TESTS "Set to OFF to skip building test executable (in ./tests)" ON)

View File

@ -94,12 +94,12 @@ public:
/// <summary>
/// The distance of the workbook window from the left side of the screen in twips.
/// </summary>
optional<std::size_t> x_window;
optional<int> x_window;
/// <summary>
/// The distance of the workbook window from the top of the screen in twips.
/// </summary>
optional<std::size_t> y_window;
optional<int> y_window;
};
} // namespace xlnt

View File

@ -31,7 +31,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unknown-pragmas")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weverything -Werror -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-documentation-unknown-command -Wno-unknown-pragmas")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-documentation-unknown-command -Wno-unknown-pragmas")
endif()
if(APPLE)

View File

@ -1425,12 +1425,12 @@ void xlsx_consumer::read_office_document(const std::string &content_type) // CT_
if (parser().attribute_present("xWindow"))
{
view.x_window = parser().attribute<std::size_t>("xWindow");
view.x_window = parser().attribute<int>("xWindow");
}
if (parser().attribute_present("yWindow"))
{
view.y_window = parser().attribute<std::size_t>("yWindow");
view.y_window = parser().attribute<int>("yWindow");
}
if (parser().attribute_present("windowWidth"))