-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libreoffice-7.4.1-poppler-22.09.patch
25 lines (23 loc) · 1.16 KB
/
libreoffice-7.4.1-poppler-22.09.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -up libreoffice-7.4.1.1/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx.omv~ libreoffice-7.4.1.1/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
--- libreoffice-7.4.1.1/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx.omv~ 2022-09-01 23:08:17.526751116 +0200
+++ libreoffice-7.4.1.1/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx 2022-09-01 23:15:46.403952295 +0200
@@ -678,15 +678,15 @@ void PDFOutDev::updateLineDash(GfxState
return;
assert(state);
- double* dashArray; int arrayLen; double startOffset;
- state->getLineDash(&dashArray, &arrayLen, &startOffset);
+ double startOffset;
+ const std::vector<double> dashArray = state->getLineDash(&startOffset);
printf( "updateLineDash" );
- if( arrayLen && dashArray )
+ if( dashArray.size() )
{
- printf( " %f %d", normalize(startOffset), arrayLen );
- for( int i=0; i<arrayLen; ++i )
- printf( " %f", normalize(*dashArray++) );
+ printf( " %f %d", normalize(startOffset), dashArray.size() );
+ for( int i=0; i<dashArray.size(); ++i )
+ printf( " %f", normalize(dashArray[i]) );
}
printf( "\n" );
}