------------------------------------------------------------------------------
| 2726 | |
| 2727 | //------------------------------------------------------------------------------ |
| 2728 | void vtkXYPlotActor::SetXLabelFormat(const char* _arg) |
| 2729 | { |
| 2730 | if (this->XLabelFormat == nullptr && _arg == nullptr) |
| 2731 | { |
| 2732 | return; |
| 2733 | } |
| 2734 | |
| 2735 | if (this->XLabelFormat && _arg && (!strcmp(this->XLabelFormat, _arg))) |
| 2736 | { |
| 2737 | return; |
| 2738 | } |
| 2739 | |
| 2740 | delete[] this->XLabelFormat; |
| 2741 | |
| 2742 | if (_arg) |
| 2743 | { |
| 2744 | this->XLabelFormat = new char[strlen(_arg) + 1]; |
| 2745 | strcpy(this->XLabelFormat, _arg); |
| 2746 | } |
| 2747 | else |
| 2748 | { |
| 2749 | this->XLabelFormat = nullptr; |
| 2750 | } |
| 2751 | |
| 2752 | this->XAxis->SetLabelFormat(this->XLabelFormat); |
| 2753 | |
| 2754 | this->Modified(); |
| 2755 | } |
| 2756 | |
| 2757 | //------------------------------------------------------------------------------ |
| 2758 | void vtkXYPlotActor::SetYLabelFormat(const char* _arg) |