summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/inc/datafdlg.hxx1
-rw-r--r--sc/source/ui/miscdlgs/datafdlg.cxx5
2 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/inc/datafdlg.hxx b/sc/source/ui/inc/datafdlg.hxx
index 6f41ddbf88a5..3e7d92e9e364 100644
--- a/sc/source/ui/inc/datafdlg.hxx
+++ b/sc/source/ui/inc/datafdlg.hxx
@@ -64,6 +64,7 @@ private:
PushButton aBtnClose;
ScrollBar aSlider;
FixedText aFixedText;
+ OUString sNewRecord;
ScTabViewShell* pTabViewShell;
ScDocument* pDoc;
diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx b/sc/source/ui/miscdlgs/datafdlg.cxx
index 69e03e84014b..c8810aca533e 100644
--- a/sc/source/ui/miscdlgs/datafdlg.cxx
+++ b/sc/source/ui/miscdlgs/datafdlg.cxx
@@ -54,7 +54,8 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, ScTabViewShell* pTabViewShellOri
aBtnNext ( this, ScResId( BTN_DATAFORM_NEXT ) ),
aBtnClose ( this, ScResId( BTN_DATAFORM_CLOSE ) ),
aSlider ( this, ScResId( WND_DATAFORM_SCROLLBAR ) ),
- aFixedText ( this, ScResId( LAB_DATAFORM_RECORDNO ) )
+ aFixedText ( this, ScResId( LAB_DATAFORM_RECORDNO ) ),
+ sNewRecord(SC_RESSTR(STR_NEW_RECORD))
{
pTabViewShell = pTabViewShellOri;
FreeResource();
@@ -265,7 +266,7 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)
aFixedText.SetText(aBuf.makeStringAndClear());
}
else
- aFixedText.SetText(String(ScResId(STR_NEW_RECORD)));
+ aFixedText.SetText(sNewRecord);
aSlider.SetThumbPos(nCurrentRow-nStartRow-1);
}