- Labels van contouren die niet herkend waren maar vanuit ASP label hebben gekregen wel tekenen

svn path=/Slnkdwf/trunk/; revision=43708
This commit is contained in:
Jos Groot Lipman
2019-08-11 20:02:15 +00:00
parent 699121d407
commit 84c58d2f59
5 changed files with 18 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
// Zorg dat versies alfabetisch altijd op elkaar volgen!
#define SLNK_MAJOR_VERSION 4
#define SLNK_MINOR_VERSION 17
#define SLNK_MINOR_VERSION 18
#define SLNK_BUILD_VERSION 0
// Define resource strings

View File

@@ -965,8 +965,7 @@ bool CWhipFile::GenerateLabels(WT_File &my_planfile, myWT_File &my_file, double
// Een polyline hebben we nu niet nodig
if (contour->m_ShowLabel != "")
{ // We have got a proper label/contour
// Alle teksten tekenen
{ // We have got a proper label/contour, origineel of gezet door de applicatie
contour->SerializeLabel(my_file, scale, myDC);
}
}

View File

@@ -422,7 +422,12 @@ void CSLNKContourImpl::SerializeLabel(WT_File &my_file,
{ ATLASSERT(myDC!=NULL);
// Als niet binnen contour dan terugvallen op DEFAULT
if (!CSLNKContourImpl::PointInPolygon(ptTxt, *this))
ptTxt = LabelPosition(CSLNKContourImpl::LABEL_DEFAULT);
{
if (m_contLabel.length())
ptTxt = LabelPosition(CSLNKContourImpl::LABEL_DEFAULT);
else
ptTxt = LabelPosition(CSLNKContourImpl::LABEL_TOPLEFT);
}
// Eerst een keer simuleren om grootte te bepalen
CSize ptBR = DrawOneLabel(my_file, ptTxt, tok, l_fontheight, scale, myDC);
width = ptBR.cx;

View File

@@ -26,7 +26,7 @@ public:
#ifndef DWFTK_READ_ONLY
bool SaveAsAscii(const CString &destpath, EPlot_Progress_Action action = NULL);
#endif
bool m_ascii;
BOOL m_ascii;
protected:
unsigned int m_color;

View File

@@ -1,3 +1,10 @@
V4.18 11-08-2019
- Geen afrondfouten/oveflow bij Centroid berekening als zowel x en y rond INT_MAX
- vectordpi functie toegevoegd
- SaveAs tweede parameter ascii toegevoegd
- Meer commentaren in ascii versie tempdwf
- Labels van contouren die niet herkend waren maar vanuit ASP label hebben gekregen wel tekenen
V4.17 07-03-2017
- base64_decode kapte string af bij url-safe '-' en '_'
@@ -11,10 +18,10 @@ V4.15 06-09-2016
- b64_hmac_sha1 is deprecated (gebruik maar de hex_hmac_sha1 en converteer die)
V4.14 14-8-2016
- Ook BMP formaat plaatjes ondersteunen voor sumbolen
- Ook BMP formaat plaatjes ondersteunen voor symbolen
- Crypto/b64_random en hex_random toegevoegd. De b64 is filename/url safe
- Contourlabels niet meer transparent
- Contourlabels widthfactor weer goede default default
- Contourlabels widthfactor weer goede default
V4.13 11-08-2016
- Bij Vectorworks dwfs beter oppervlakte uitrekenen