summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-04-15 12:15:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-04-15 12:17:45 +0100
commit079f21531b112f9c56b1db060caa26d4f406aeb5 (patch)
tree4c7acfec6b7ffaf3621eb56ac02684271ec67217
parentabc5c418d6c6fd53e711fc0e58d5b1f84dea5d44 (diff)
missing string, local resource used as if global
Change-Id: I8c256668edeb4c0475136f46103002d804ee66eb
-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);
}