Skip to content

Commit 23e7c29

Browse files
Yet another printing bug.
1 parent 8ab5e0c commit 23e7c29

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if(WIN32)
1111
enable_language(RC)
1212
endif()
1313

14-
set(VERSION 21.05.0-DevelopmentSnapshot)
14+
set(VERSION 21.05.1)
1515
set(GITVERSION ${VERSION})
1616
set(CMAKE_CXX_STANDARD 14)
1717
set(CMAKE_CXX_STANDARD_REQUIRED ON)

NEWS.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 21.05.1:
2+
* Resolved a segfault on printing that could be triggered on some computers
3+
14
# 21.05.0:
25
* Long numbers now can be broken into lines
36
* On Export long numbers sometimes got lost

data/io.github.wxmaxima_developers.wxMaxima.appdata.xml

+7
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@
5050
<content_rating type="oars-1.0">
5151
<content_attribute id="social-info">mild</content_attribute>
5252
</content_rating>
53+
<release version="21.05.1" date="2021-05-16T17:04:00Z">
54+
<description>
55+
<p>
56+
Fixes a crash on printing that could be triggered on some computers.
57+
</p>
58+
</description>
59+
</release>
5360
<releases>
5461

5562
<!-- prefer to use date with approximate UTC time - this way the verifier won't trip due

src/Worksheet.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,11 @@ class Worksheet : public wxScrolled<wxWindow>
16371637
};
16381638

16391639
inline Worksheet *Cell::GetWorksheet() const
1640-
{ return static_cast<Worksheet*>((*m_configuration)->GetWorkSheet()); }
1640+
{
1641+
wxWindow *worksheet = (*m_configuration)->GetWorkSheet();
1642+
wxASSERT(worksheet != NULL);
1643+
return static_cast<Worksheet*>(worksheet);
1644+
}
16411645

16421646
inline void Configuration::SetWorkSheet(wxWindow *workSheet)
16431647
{ m_workSheet = dynamic_cast<Worksheet*>(workSheet); }

src/cells/ImgCell.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ ImgCell::ImgCell(GroupCell *group, Configuration **config, const wxString &image
8585
}
8686

8787
ImgCell::ImgCell(GroupCell *group, const ImgCell &cell) :
88-
Cell(group, m_configuration),
88+
Cell(group, cell.m_configuration),
8989
m_imageBorderWidth(1)
9090
{
9191
InitBitFields();

0 commit comments

Comments
 (0)