gravatar
tapolcai@tmit.bme.hu
tapolcai@tmit.bme.hu
Compilation bug fixed in graph_to_eps.h with VS2005 (#214)
0 1 0
default
1 file changed with 14 insertions and 2 deletions:
↑ Collapse diff ↑
Show white space 12 line context
... ...
@@ -685,25 +685,37 @@
685 685

	
686 686
      char cbuf[26];
687 687
      ctime_r(&tv.tv_sec,cbuf);
688 688
      os << "%%CreationDate: " << cbuf;
689 689
#else
690 690
      SYSTEMTIME time;
691
      GetSystemTime(&time);
692
#if defined(_MSC_VER) && (_MSC_VER < 1500)
693
      LPWSTR buf1, buf2, buf3;
694
      if (GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
695
                        L"ddd MMM dd", buf1, 11) &&
696
          GetTimeFormat(LOCALE_USER_DEFAULT, 0, &time,
697
                        L"HH':'mm':'ss", buf2, 9) &&
698
          GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
699
                        L"yyyy", buf3, 5)) {
700
        os << "%%CreationDate: " << buf1 << ' '
701
           << buf2 << ' ' << buf3 << std::endl;
702
      }
703
#else
691 704
      char buf1[11], buf2[9], buf3[5];
692

	
693
      GetSystemTime(&time);
694 705
      if (GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
695 706
                        "ddd MMM dd", buf1, 11) &&
696 707
          GetTimeFormat(LOCALE_USER_DEFAULT, 0, &time,
697 708
                        "HH':'mm':'ss", buf2, 9) &&
698 709
          GetDateFormat(LOCALE_USER_DEFAULT, 0, &time,
699 710
                                "yyyy", buf3, 5)) {
700 711
        os << "%%CreationDate: " << buf1 << ' '
701 712
           << buf2 << ' ' << buf3 << std::endl;
702 713
      }
703 714
#endif
715
#endif
704 716
    }
705 717

	
706 718
    if (_autoArcWidthScale) {
707 719
      double max_w=0;
708 720
      for(ArcIt e(g);e!=INVALID;++e)
709 721
        max_w=std::max(double(_arcWidths[e]),max_w);
0 comments (0 inline)