summaryrefslogtreecommitdiff
path: root/app-office/abiword/files/abiword-3.0.5-musl-lose-precision-fix.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-15 05:12:09 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-15 05:12:09 +0100
commitd49d63ee52f4026f7871f4ce062c172ba5e62b74 (patch)
tree8651e664517755edac13eef87d2f4dfb9ad3e968 /app-office/abiword/files/abiword-3.0.5-musl-lose-precision-fix.patch
parent5bcf7bb4786021fc77303fae7934b17d525f9ad6 (diff)
gentoo auto-resync : 15:09:2022 - 05:12:09
Diffstat (limited to 'app-office/abiword/files/abiword-3.0.5-musl-lose-precision-fix.patch')
-rw-r--r--app-office/abiword/files/abiword-3.0.5-musl-lose-precision-fix.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/app-office/abiword/files/abiword-3.0.5-musl-lose-precision-fix.patch b/app-office/abiword/files/abiword-3.0.5-musl-lose-precision-fix.patch
new file mode 100644
index 000000000000..af2a33f0bbb8
--- /dev/null
+++ b/app-office/abiword/files/abiword-3.0.5-musl-lose-precision-fix.patch
@@ -0,0 +1,37 @@
+# Patch written by fellow Gentoo user ernsteiswuerfel
+#
+# Please also reffer:
+# https://gitlab.gnome.org/World/AbiWord/-/commit/857cd86def49fe8557cfe123830c4d5a61eee732
+#
+# Closes: https://bugs.gentoo.org/853118
+--- a/src/af/xap/xp/xap_Dialog.cpp
++++ b/src/af/xap/xp/xap_Dialog.cpp
+@@ -36,8 +36,8 @@
+
+ XAP_Dialog::XAP_Dialog(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id,
+ const char * helpUrl )
+- : m_pApp ( NULL ), m_pDlgFactory ( pDlgFactory ), m_id ( id ),
+- m_helpUrl(NULL)
++ : m_pApp ( nullptr ), m_pDlgFactory ( pDlgFactory ), m_id ( id ),
++ m_helpUrl(nullptr)
+ {
+ m_pApp = pDlgFactory->getApp();
+
+@@ -235,7 +235,7 @@ XAP_Frame * XAP_Dialog_Modeless::getActiveFrame(void) const
+ // This function returns the frame currently connected to a modeless dialog
+
+ XAP_Frame * pFrame = m_pApp->getLastFocussedFrame();
+- if(pFrame == (XAP_Frame *) NULL)
++ if(pFrame == (XAP_Frame *) nullptr)
+ {
+ pFrame = m_pApp->getFrame(0);
+ }
+@@ -267,7 +267,7 @@ XAP_Dialog_Modeless::BuildWindowName(char * pWindowName, const char * pDialogNam
+ // This function constructs and returns the window name of a modeless dialog by
+ // concatenating the active frame with the dialog name
+
+- *pWindowName = (char) NULL;
++ *pWindowName = (char) 0;
+ UT_UTF8String wn = UT_UTF8String(pDialogName);
+
+ XAP_Frame* pFrame = getActiveFrame();