From 6722e25cbe8116eea1ab82cd41a6b21f6882b7ff Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Tue, 17 Jun 2014 13:36:29 -0400 Subject: [PATCH] Fix Issue 1182: Script Window Resize Issue --- indra/newview/llpreviewscript.cpp | 12 ------------ indra/newview/llpreviewscript.h | 1 - 2 files changed, 13 deletions(-) diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index e79838767..bfc518326 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -1197,18 +1197,6 @@ bool LLScriptEdContainer::onExternalChange(const std::string& filename) return true; } -// virtual -void LLScriptEdContainer::reshape(S32 width, S32 height, BOOL called_from_parent) -{ - LLPreview::reshape(width, height, called_from_parent); - - if (!isMinimized()) - { - // So that next time you open a script it will have the same height and width (although not the same position). - gSavedSettings.setRect("PreviewScriptRect", getRect()); - } -} - // // virtual BOOL LLScriptEdContainer::canSaveAs() const diff --git a/indra/newview/llpreviewscript.h b/indra/newview/llpreviewscript.h index 906708333..ac95da40c 100644 --- a/indra/newview/llpreviewscript.h +++ b/indra/newview/llpreviewscript.h @@ -197,7 +197,6 @@ protected: LLTextEditor* getEditor() { return mScriptEd->mEditor; } /*virtual*/ const char *getTitleName() const { return "Script"; } - /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); // /*virtual*/ BOOL canSaveAs() const; /*virtual*/ void saveAs();